r90396 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r90395‎ | r90396 | r90397 >
Date:14:27, 19 June 2011
Author:robin
Status:ok
Tags:
Comment:
Change $wgContLang->getDirMark() to wfUILang()->getDirMark() (improvement when $wgBetterDirectionality is enabled)
Modified paths:
  • /trunk/phase3/includes/ChangesList.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/ChangesList.php
@@ -355,7 +355,7 @@
356356 $articlelink = "<strong class=\"mw-watched\">{$articlelink}</strong>";
357357 }
358358 # RTL/LTR marker
359 - $articlelink .= $wgContLang->getDirMark();
 359+ $articlelink .= wfUILang()->getDirMark();
360360
361361 wfRunHooks( 'ChangesListInsertArticleLink',
362362 array(&$this, &$articlelink, &$s, &$rc, $unpatrolled, $watched) );
@@ -867,7 +867,7 @@
868868 $users = array();
869869 foreach( $userlinks as $userlink => $count) {
870870 $text = $userlink;
871 - $text .= $wgContLang->getDirMark();
 871+ $text .= wfUILang()->getDirMark();
872872 if( $count > 1 ) {
873873 $text .= ' (' . $wgLang->formatNum( $count ) . '×)';
874874 }
@@ -909,7 +909,7 @@
910910 $this->insertArticleLink( $r, $block[0], $block[0]->unpatrolled, $block[0]->watched );
911911 }
912912
913 - $r .= $wgContLang->getDirMark();
 913+ $r .= wfUILang()->getDirMark();
914914
915915 $queryParams['curid'] = $curId;
916916 # Changes message

Status & tagging log