r23168 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r23167‎ | r23168 | r23169 >
Date:16:08, 21 June 2007
Author:rotem
Status:old
Tags:
Comment:
Adding a direction mark, for RTL wikis (it may be better to localise the text, though).
Modified paths:
  • /trunk/phase3/includes/ProtectionForm.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/ProtectionForm.php
@@ -331,7 +331,7 @@
332332 }
333333
334334 function buildRobotsInput() {
335 - global $wgUser;
 335+ global $wgUser, $wgContLang;
336336 $robotsallowed = $wgUser->isAllowed( 'editrobots' ) ? array() : array( 'disabled' => 'disabled' );
337337 $noindexset = ( isset( $this->mRestrictions['robots'] ) && strstr( $this->mRestrictions['robots'], 'noindex' ) ) ? true : false;
338338 $nofollowset = ( isset( $this->mRestrictions['robots'] ) && strstr( $this->mRestrictions['robots'], 'nofollow' ) ) ? true : false;
@@ -339,6 +339,7 @@
340340 $ret .= Xml::label( wfMsg( 'protect-robotspolicy' ), 'mwProtect-robots-label' );
341341 $ret .= "</td> <td align=\"left\" width=\"60\">";
342342 $ret .= Xml::checkLabel( 'noindex', 'mwProtect-robots-noindex', 'mwProtect-robots-noindex', $noindexset, $robotsallowed );
 343+ $ret .= $wgContLang->getDirMark();
343344 $ret .= Xml::checkLabel( 'nofollow', 'mwProtect-robots-nofollow', 'mwProtect-robots-nofollow', $nofollowset, $robotsallowed );
344345 $ret .= "</td></tr>";
345346 return $ret;

Follow-up revisions

RevisionCommit summaryAuthorDate
r23203Merged revisions 23120-23202 via svnmerge from...david09:07, 22 June 2007

Status & tagging log