From 476731f179a023bfc457d0390b5a77bfb2cf82ff Mon Sep 17 00:00:00 2001 From: Daniel Friesen Date: Wed, 17 Aug 2011 14:10:41 +0000 Subject: [PATCH] Followup r80248; Fix inverted message exists tests in ProtectionForm. --- includes/ProtectionForm.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/ProtectionForm.php b/includes/ProtectionForm.php index e68be85d33..cac302558a 100644 --- a/includes/ProtectionForm.php +++ b/includes/ProtectionForm.php @@ -357,7 +357,7 @@ class ProtectionForm { $msg = wfMessage( 'restriction-' . $action ); $out .= "". Xml::openElement( 'fieldset' ) . - Xml::element( 'legend', null, $msg->exists() ? $action : $msg->text() ) . + Xml::element( 'legend', null, $msg->exists() ? $msg->text() : $action ) . Xml::openElement( 'table', array( 'id' => "mw-protect-table-$action" ) ) . "" . $this->buildSelector( $action, $selected ) . ""; @@ -569,7 +569,7 @@ class ProtectionForm { return wfMsg( 'protect-default' ); } else { $msg = wfMessage( "protect-level-{$permission}" ); - if( !$msg->exists() ) { + if( $msg->exists() ) { return $msg->text(); } return wfMsg( 'protect-fallback', $permission ); -- 2.20.1