Index: trunk/phase3/includes/FileDeleteForm.php |
— | — | @@ -89,9 +89,7 @@ |
90 | 90 | |
91 | 91 | if( !$status->isGood() ) { |
92 | 92 | $wgOut->addHTML( '<h2>' . $this->prepareMessage( 'filedeleteerror-short' ) . "</h2>\n" ); |
93 | | - $wgOut->addHTML( '<div class="error">' ); |
94 | | - $wgOut->addWikiText( $status->getWikiText( 'filedeleteerror-short', 'filedeleteerror-long' ) ); |
95 | | - $wgOut->addHTML( '</div>' ); |
| 93 | + $wgOut->addWikiText( '<div class="error">' . $status->getWikiText( 'filedeleteerror-short', 'filedeleteerror-long' ) . '</div>' ); |
96 | 94 | } |
97 | 95 | if( $status->ok ) { |
98 | 96 | $wgOut->setPageTitle( wfMessage( 'actioncomplete' ) ); |
Index: trunk/phase3/includes/specials/SpecialUndelete.php |
— | — | @@ -1399,9 +1399,7 @@ |
1400 | 1400 | // Show file deletion warnings and errors |
1401 | 1401 | $status = $archive->getFileStatus(); |
1402 | 1402 | if( $status && !$status->isGood() ) { |
1403 | | - $out->addHTML( '<div class="error">' ); |
1404 | | - $out->addWikiText( $status->getWikiText( 'undelete-error-short', 'undelete-error-long' ) ); |
1405 | | - $out->addHTML( '</div>' ); |
| 1403 | + $out->addWikiText( '<div class="error">' . $status->getWikiText( 'undelete-error-short', 'undelete-error-long' ) . '</div>' ); |
1406 | 1404 | } |
1407 | 1405 | } |
1408 | 1406 | } |