From 87f7c7845c1670bb5d36331c2be26cf37408771f Mon Sep 17 00:00:00 2001 From: Rob Church Date: Tue, 11 Apr 2006 20:46:09 +0000 Subject: [PATCH] (bug 5544) Fix redirect arrow in Special:Listredirects for right-to-left languages --- RELEASE-NOTES | 2 +- includes/SpecialListredirects.php | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 2857c841ff..172a0a114b 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -47,7 +47,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN Deactivated by default, set "$wgAllowDisplayTitle = true" in LocalSettings.php to activate * Cleaned SpecialContributions a bit * Added a table to track interlanguage links -* Even further additions to Hebrew localisation +* (bug 5544) Fix redirect arrow in Special:Listredirects for right-to-left languages == Compatibility == diff --git a/includes/SpecialListredirects.php b/includes/SpecialListredirects.php index 804df551cf..729de43edf 100644 --- a/includes/SpecialListredirects.php +++ b/includes/SpecialListredirects.php @@ -31,6 +31,8 @@ class ListredirectsPage extends QueryPage { } function formatResult( $skin, $result ) { + global $wgContLang; + # Make a link to the redirect itself $rd_title = Title::makeTitle( $result->namespace, $result->title ); $rd_link = $skin->makeKnownLinkObj( $rd_title, '', 'redirect=no' ); @@ -51,8 +53,11 @@ class ListredirectsPage extends QueryPage { $targetLink = '*'; } + # Check the language; RTL wikis need a ← + $arr = $wgContLang->isRTL() ? ' ← ' : ' → '; + # Format the whole thing and return it - return( $rd_link . ' → ' . $targetLink ); + return( $rd_link . $arr . $targetLink ); } -- 2.20.1