From eac74f1650d969c924d9d005238de68c47120e78 Mon Sep 17 00:00:00 2001 From: Rotem Liss Date: Tue, 2 Aug 2011 09:09:23 +0000 Subject: [PATCH] Add direction mark in recent changes and in protection log summary. --- includes/ChangesList.php | 2 ++ includes/WikiPage.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/ChangesList.php b/includes/ChangesList.php index 2d5635cc45..f75c5d5bc1 100644 --- a/includes/ChangesList.php +++ b/includes/ChangesList.php @@ -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 diff --git a/includes/WikiPage.php b/includes/WikiPage.php index 85b5fb5f14..9a49e9e05c 100644 --- a/includes/WikiPage.php +++ b/includes/WikiPage.php @@ -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 ) , -- 2.20.1