Index: branches/wmf/1.18wmf1/includes/ProtectionForm.php |
— | — | @@ -357,7 +357,7 @@ |
358 | 358 | $msg = wfMessage( 'restriction-' . $action ); |
359 | 359 | $out .= "<tr><td>". |
360 | 360 | Xml::openElement( 'fieldset' ) . |
361 | | - Xml::element( 'legend', null, $msg->exists() ? $action : $msg->text() ) . |
| 361 | + Xml::element( 'legend', null, $msg->exists() ? $msg->text() : $action ) . |
362 | 362 | Xml::openElement( 'table', array( 'id' => "mw-protect-table-$action" ) ) . |
363 | 363 | "<tr><td>" . $this->buildSelector( $action, $selected ) . "</td></tr><tr><td>"; |
364 | 364 | |
— | — | @@ -569,7 +569,7 @@ |
570 | 570 | return wfMsg( 'protect-default' ); |
571 | 571 | } else { |
572 | 572 | $msg = wfMessage( "protect-level-{$permission}" ); |
573 | | - if( !$msg->exists() ) { |
| 573 | + if( $msg->exists() ) { |
574 | 574 | return $msg->text(); |
575 | 575 | } |
576 | 576 | return wfMsg( 'protect-fallback', $permission ); |