r98609 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r98608‎ | r98609 | r98610 >
Date:05:40, 1 October 2011
Author:aaron
Status:ok
Tags:
Comment:
MFT r94761
Modified paths:
  • /branches/wmf/1.18wmf1/includes/ProtectionForm.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.18wmf1/includes/ProtectionForm.php
@@ -357,7 +357,7 @@
358358 $msg = wfMessage( 'restriction-' . $action );
359359 $out .= "<tr><td>".
360360 Xml::openElement( 'fieldset' ) .
361 - Xml::element( 'legend', null, $msg->exists() ? $action : $msg->text() ) .
 361+ Xml::element( 'legend', null, $msg->exists() ? $msg->text() : $action ) .
362362 Xml::openElement( 'table', array( 'id' => "mw-protect-table-$action" ) ) .
363363 "<tr><td>" . $this->buildSelector( $action, $selected ) . "</td></tr><tr><td>";
364364
@@ -569,7 +569,7 @@
570570 return wfMsg( 'protect-default' );
571571 } else {
572572 $msg = wfMessage( "protect-level-{$permission}" );
573 - if( !$msg->exists() ) {
 573+ if( $msg->exists() ) {
574574 return $msg->text();
575575 }
576576 return wfMsg( 'protect-fallback', $permission );

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r94761Followup r80248; Fix inverted message exists tests in ProtectionForm.dantman14:10, 17 August 2011

Status & tagging log