Add direction mark in recent changes and in protection log summary.
authorRotem Liss <rotem@users.mediawiki.org>
Tue, 2 Aug 2011 09:09:23 +0000 (09:09 +0000)
committerRotem Liss <rotem@users.mediawiki.org>
Tue, 2 Aug 2011 09:09:23 +0000 (09:09 +0000)
includes/ChangesList.php
includes/WikiPage.php

index 2d5635c..f75c5d5 100644 (file)
@@ -589,6 +589,8 @@ class OldChangesList extends ChangesList {
                $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
index 85b5fb5..9a49e9e 100644 (file)
@@ -1409,7 +1409,7 @@ class WikiPage extends Page {
 
                                        $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 ) ,