Show an arrow in the right direction also in Broken Redirects special page, not only...
authorRotem Liss <rotem@users.mediawiki.org>
Wed, 21 Jun 2006 16:39:21 +0000 (16:39 +0000)
committerRotem Liss <rotem@users.mediawiki.org>
Wed, 21 Jun 2006 16:39:21 +0000 (16:39 +0000)
RELEASE-NOTES
includes/SpecialBrokenRedirects.php

index 1f45c56..bdc4fea 100644 (file)
@@ -530,6 +530,8 @@ Some default configuration options have changed:
 * (bug 6345) Update to Indonesian localisation (id) #22
 * (bug 6279) Add genitive month names to Slovenian localisation
 * (bug 6351) Update to German translation (de)
+* Show an arrow in the right direction also in Broken Redirects special page,
+  not only in the Double Redirects.
 
 == Compatibility ==
 
index 77367bc..e5c2dd8 100644 (file)
@@ -46,6 +46,8 @@ class BrokenRedirectsPage extends PageQueryPage {
        }
 
        function formatResult( $skin, $result ) {
+               global $wgContLang;
+               
                $fromObj = Title::makeTitle( $result->namespace, $result->title );
                if ( isset( $result->pl_title ) ) {
                        $toObj = Title::makeTitle( $result->pl_namespace, $result->pl_title );
@@ -66,8 +68,9 @@ class BrokenRedirectsPage extends PageQueryPage {
                $from = $skin->makeKnownLinkObj( $fromObj ,'', 'redirect=no' );
                $edit = $skin->makeBrokenLinkObj( $fromObj , "(".wfMsg("qbedit").")" , 'redirect=no');
                $to   = $skin->makeBrokenLinkObj( $toObj );
+               $arr = $wgContLang->isRTL() ? '&larr;' : '&rarr;';
 
-               return "$from $edit &rarr; $to";
+               return "$from $edit $arr $to";
        }
 }