From: Rotem Liss Date: Wed, 21 Jun 2006 16:39:21 +0000 (+0000) Subject: Show an arrow in the right direction also in Broken Redirects special page, not only... X-Git-Tag: 1.31.0-rc.0~56708 X-Git-Url: https://git.heureux-cyclage.org/?a=commitdiff_plain;h=3732ba7ee5b95e27a8ddd369087797817b491df3;p=lhc%2Fweb%2Fwiklou.git Show an arrow in the right direction also in Broken Redirects special page, not only in the Double Redirects. --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 1f45c56314..bdc4feae6e 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 == diff --git a/includes/SpecialBrokenRedirects.php b/includes/SpecialBrokenRedirects.php index 77367bcf1f..e5c2dd8e04 100644 --- a/includes/SpecialBrokenRedirects.php +++ b/includes/SpecialBrokenRedirects.php @@ -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() ? '←' : '→'; - return "$from $edit → $to"; + return "$from $edit $arr $to"; } }