http://www.mediawiki.org/wiki/Special:Code/MediaWiki/93713

Revision: 93713
Author:   rotem
Date:     2011-08-02 09:09:23 +0000 (Tue, 02 Aug 2011)
Log Message:
-----------
Add direction mark in recent changes and in protection log summary.

Modified Paths:
--------------
    trunk/phase3/includes/ChangesList.php
    trunk/phase3/includes/WikiPage.php

Modified: trunk/phase3/includes/ChangesList.php
===================================================================
--- trunk/phase3/includes/ChangesList.php       2011-08-02 09:01:17 UTC (rev 
93712)
+++ trunk/phase3/includes/ChangesList.php       2011-08-02 09:09:23 UTC (rev 
93713)
@@ -589,6 +589,8 @@
                $s .= $this->getLang()->getDirMark();
                # Log action text (if any)
                $this->insertAction( $s, $rc );
+               # LTR/RTL direction mark
+               $s .= $this->getLang()->getDirMark();
                # Edit or log comment
                $this->insertComment( $s, $rc );
                # Tags

Modified: trunk/phase3/includes/WikiPage.php
===================================================================
--- trunk/phase3/includes/WikiPage.php  2011-08-02 09:01:17 UTC (rev 93712)
+++ trunk/phase3/includes/WikiPage.php  2011-08-02 09:09:23 UTC (rev 93713)
@@ -1409,7 +1409,7 @@
 
                                        $encodedExpiry[$action] = 
$dbw->encodeExpiry( $expiry[$action] );
                                        if ( $restrictions != '' ) {
-                                               $protect_description .= 
"[$action=$restrictions] (";
+                                               $protect_description .= 
$wgContLang->getDirMark() . "[$action=$restrictions] (";
                                                if ( $encodedExpiry[$action] != 
'infinity' ) {
                                                        $protect_description .= 
wfMsgForContent( 'protect-expiring',
                                                                
$wgContLang->timeanddate( $expiry[$action], false, false ) ,


_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to