Index: trunk/phase3/includes/LogPage.php |
— | — | @@ -514,11 +514,15 @@ |
515 | 515 | public static function formatBlockFlag( $flag, $forContent = false ) { |
516 | 516 | static $messages = array(); |
517 | 517 | if( !isset( $messages[$flag] ) ) { |
| 518 | + $messages[$flag] = htmlspecialchars( $flag ); // Fallback |
| 519 | + |
518 | 520 | $msg = wfMessage( 'block-log-flags-' . $flag ); |
519 | 521 | if ( $forContent ) { |
520 | | - $msg = $msg->inContentLanguage(); |
| 522 | + $msg->inContentLanguage(); |
521 | 523 | } |
522 | | - $messages[$flag] = htmlspecialchars( !$msg->exists() ? $flag : $msg ); |
| 524 | + if ( $msg->exists() ) { |
| 525 | + $messages[$flag] = $msg->escaped(); |
| 526 | + } |
523 | 527 | } |
524 | 528 | return $messages[$flag]; |
525 | 529 | } |