r93713 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r93712‎ | r93713 | r93714 >
Date:09:09, 2 August 2011
Author:rotem
Status:ok
Tags:
Comment:
Add direction mark in recent changes and in protection log summary.
Modified paths:
  • /trunk/phase3/includes/ChangesList.php (modified) (history)
  • /trunk/phase3/includes/WikiPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/ChangesList.php
@@ -589,6 +589,8 @@
590590 $s .= $this->getLang()->getDirMark();
591591 # Log action text (if any)
592592 $this->insertAction( $s, $rc );
 593+ # LTR/RTL direction mark
 594+ $s .= $this->getLang()->getDirMark();
593595 # Edit or log comment
594596 $this->insertComment( $s, $rc );
595597 # Tags
Index: trunk/phase3/includes/WikiPage.php
@@ -1409,7 +1409,7 @@
14101410
14111411 $encodedExpiry[$action] = $dbw->encodeExpiry( $expiry[$action] );
14121412 if ( $restrictions != '' ) {
1413 - $protect_description .= "[$action=$restrictions] (";
 1413+ $protect_description .= $wgContLang->getDirMark() . "[$action=$restrictions] (";
14141414 if ( $encodedExpiry[$action] != 'infinity' ) {
14151415 $protect_description .= wfMsgForContent( 'protect-expiring',
14161416 $wgContLang->timeanddate( $expiry[$action], false, false ) ,

Status & tagging log