Replace "doubleredirectsarrow" with a content language check that picks the appropria...
authorRob Church <robchurch@users.mediawiki.org>
Tue, 11 Apr 2006 21:11:20 +0000 (21:11 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Tue, 11 Apr 2006 21:11:20 +0000 (21:11 +0000)
RELEASE-NOTES
includes/SpecialDoubleRedirects.php

index 172a0a1..9a2745c 100644 (file)
@@ -48,6 +48,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * Cleaned SpecialContributions a bit
 * Added a table to track interlanguage links
 * (bug 5544) Fix redirect arrow in Special:Listredirects for right-to-left languages
+* Replace "doubleredirectsarrow" with a content language check that picks the appropriate arrow
 
 == Compatibility ==
 
index 9dea932..7246c15 100644 (file)
@@ -53,6 +53,8 @@ class DoubleRedirectsPage extends PageQueryPage {
        }
 
        function formatResult( $skin, $result ) {
+               global $wgContLang;
+       
                $fname = 'DoubleRedirectsPage::formatResult';
                $titleA = Title::makeTitle( $result->namespace, $result->title );
 
@@ -90,9 +92,9 @@ class DoubleRedirectsPage extends PageQueryPage {
                $edit = $skin->makeBrokenLinkObj( $titleA, "(".wfMsg("qbedit").")" , 'redirect=no');
                $linkB = $skin->makeKnownLinkObj( $titleB, '', 'redirect=no' );
                $linkC = $skin->makeKnownLinkObj( $titleC );
+               $arr = $wgContLang->isRTL() ? '&larr;' : '&rarr;';
 
-               return "$linkA $edit " . wfMsgHtml( 'doubleredirectsarrow' )
-                       . " $linkB " . wfMsgHtml( 'doubleredirectsarrow' ) . " $linkC";
+               return( "{$linkA} {$edit} {$arr} {$linkB} {$arr} {$linkC}" );
        }
 }