From 4fb385df754e61fba9134f48c2a10c2252d2a1f9 Mon Sep 17 00:00:00 2001 From: Rob Church Date: Tue, 11 Apr 2006 21:11:20 +0000 Subject: [PATCH] Replace "doubleredirectsarrow" with a content language check that picks the appropriate arrow --- RELEASE-NOTES | 1 + includes/SpecialDoubleRedirects.php | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 172a0a114b..9a2745c28d 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 == diff --git a/includes/SpecialDoubleRedirects.php b/includes/SpecialDoubleRedirects.php index 9dea93204d..7246c1586a 100644 --- a/includes/SpecialDoubleRedirects.php +++ b/includes/SpecialDoubleRedirects.php @@ -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() ? '←' : '→'; - return "$linkA $edit " . wfMsgHtml( 'doubleredirectsarrow' ) - . " $linkB " . wfMsgHtml( 'doubleredirectsarrow' ) . " $linkC"; + return( "{$linkA} {$edit} {$arr} {$linkB} {$arr} {$linkC}" ); } } -- 2.20.1