http://www.mediawiki.org/wiki/Special:Code/MediaWiki/99476

Revision: 99476
Author:   ialex
Date:     2011-10-11 13:12:40 +0000 (Tue, 11 Oct 2011)
Log Message:
-----------
* Use local context instead of global variables
* Call Linker methods statically

Modified Paths:
--------------
    trunk/phase3/includes/specials/SpecialListredirects.php

Modified: trunk/phase3/includes/specials/SpecialListredirects.php
===================================================================
--- trunk/phase3/includes/specials/SpecialListredirects.php     2011-10-11 
13:01:34 UTC (rev 99475)
+++ trunk/phase3/includes/specials/SpecialListredirects.php     2011-10-11 
13:12:40 UTC (rev 99476)
@@ -98,7 +98,7 @@
        function formatResult( $skin, $result ) {
                # Make a link to the redirect itself
                $rd_title = Title::makeTitle( $result->namespace, 
$result->title );
-               $rd_link = $skin->link(
+               $rd_link = Linker::link(
                        $rd_title,
                        null,
                        array(),
@@ -108,10 +108,10 @@
                # Find out where the redirect leads
                $target = $this->getRedirectTarget( $result );
                if( $target ) {
-                       global $wgLang;
                        # Make a link to the destination page
-                       $arr = $wgLang->getArrow() . $wgLang->getDirMark();
-                       $targetLink = $skin->link( $target );
+                       $lang = $this->getLang();
+                       $arr = $lang->getArrow() . $lang->getDirMark();
+                       $targetLink = Linker::link( $target );
                        return "$rd_link $arr $targetLink";
                } else {
                        return "<del>$rd_link</del>";


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to