Adding a direction mark, for RTL wikis (it may be better to localise the text, though).
authorRotem Liss <rotem@users.mediawiki.org>
Thu, 21 Jun 2007 16:08:11 +0000 (16:08 +0000)
committerRotem Liss <rotem@users.mediawiki.org>
Thu, 21 Jun 2007 16:08:11 +0000 (16:08 +0000)
includes/ProtectionForm.php

index c8bb191..f2a6e01 100644 (file)
@@ -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 .= "</td> <td align=\"left\" width=\"60\">";
                $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 .= "</td></tr>";
                return $ret;