Index: trunk/phase3/includes/EditPage.php |
— | — | @@ -657,6 +657,7 @@ |
658 | 658 | } |
659 | 659 | } |
660 | 660 | |
| 661 | + // FIXME: unused variable? |
661 | 662 | $this->oldid = $request->getInt( 'oldid' ); |
662 | 663 | |
663 | 664 | $this->live = $request->getCheck( 'live' ); |
— | — | @@ -1708,7 +1709,7 @@ |
1709 | 1710 | // so should remain short! |
1710 | 1711 | wfRunHooks( 'EditPageTosSummary', array( $this->mTitle, &$msg ) ); |
1711 | 1712 | $text = wfMsg( $msg ); |
1712 | | - if( $text != '-' ) { |
| 1713 | + if( !wfEmptyMsg( $msg, $text ) && $text !== '-' ) { |
1713 | 1714 | global $wgOut; |
1714 | 1715 | $wgOut->addHTML( '<div class="mw-tos-summary">' ); |
1715 | 1716 | $wgOut->addWikiMsgArray( $msg, array() ); |