From: Siebrand Mazeland Date: Sat, 17 Mar 2012 21:19:31 +0000 (+0000) Subject: Follow-up r113939: Add divs to addWikiText(). X-Git-Tag: 1.31.0-rc.0~24223 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=7521a3ffa4ff3017624e59278c4fd67a6f70e868;p=lhc%2Fweb%2Fwiklou.git Follow-up r113939: Add divs to addWikiText(). --- diff --git a/includes/FileDeleteForm.php b/includes/FileDeleteForm.php index a1b4900279..d86c8d82f3 100644 --- a/includes/FileDeleteForm.php +++ b/includes/FileDeleteForm.php @@ -89,9 +89,7 @@ class FileDeleteForm { if( !$status->isGood() ) { $wgOut->addHTML( '

' . $this->prepareMessage( 'filedeleteerror-short' ) . "

\n" ); - $wgOut->addHTML( '
' ); - $wgOut->addWikiText( $status->getWikiText( 'filedeleteerror-short', 'filedeleteerror-long' ) ); - $wgOut->addHTML( '
' ); + $wgOut->addWikiText( '
' . $status->getWikiText( 'filedeleteerror-short', 'filedeleteerror-long' ) . '
' ); } if( $status->ok ) { $wgOut->setPageTitle( wfMessage( 'actioncomplete' ) ); diff --git a/includes/specials/SpecialUndelete.php b/includes/specials/SpecialUndelete.php index af2fb1d61a..e8f3df7243 100644 --- a/includes/specials/SpecialUndelete.php +++ b/includes/specials/SpecialUndelete.php @@ -1399,9 +1399,7 @@ class SpecialUndelete extends SpecialPage { // Show file deletion warnings and errors $status = $archive->getFileStatus(); if( $status && !$status->isGood() ) { - $out->addHTML( '
' ); - $out->addWikiText( $status->getWikiText( 'undelete-error-short', 'undelete-error-long' ) ); - $out->addHTML( '
' ); + $out->addWikiText( '
' . $status->getWikiText( 'undelete-error-short', 'undelete-error-long' ) . '
' ); } } }