From 73c51ed3cc52a12f445d329d4239b04be2cc5357 Mon Sep 17 00:00:00 2001 From: Rotem Liss Date: Thu, 21 Jun 2007 16:08:11 +0000 Subject: [PATCH] Adding a direction mark, for RTL wikis (it may be better to localise the text, though). --- includes/ProtectionForm.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/ProtectionForm.php b/includes/ProtectionForm.php index c8bb191ce8..f2a6e018e0 100644 --- a/includes/ProtectionForm.php +++ b/includes/ProtectionForm.php @@ -331,7 +331,7 @@ class ProtectionForm { } function buildRobotsInput() { - global $wgUser; + global $wgUser, $wgContLang; $robotsallowed = $wgUser->isAllowed( 'editrobots' ) ? array() : array( 'disabled' => 'disabled' ); $noindexset = ( isset( $this->mRestrictions['robots'] ) && strstr( $this->mRestrictions['robots'], 'noindex' ) ) ? true : false; $nofollowset = ( isset( $this->mRestrictions['robots'] ) && strstr( $this->mRestrictions['robots'], 'nofollow' ) ) ? true : false; @@ -339,6 +339,7 @@ class ProtectionForm { $ret .= Xml::label( wfMsg( 'protect-robotspolicy' ), 'mwProtect-robots-label' ); $ret .= " "; $ret .= Xml::checkLabel( 'noindex', 'mwProtect-robots-noindex', 'mwProtect-robots-noindex', $noindexset, $robotsallowed ); + $ret .= $wgContLang->getDirMark(); $ret .= Xml::checkLabel( 'nofollow', 'mwProtect-robots-nofollow', 'mwProtect-robots-nofollow', $nofollowset, $robotsallowed ); $ret .= ""; return $ret; -- 2.20.1