From 7521a3ffa4ff3017624e59278c4fd67a6f70e868 Mon Sep 17 00:00:00 2001 From: Siebrand Mazeland Date: Sat, 17 Mar 2012 21:19:31 +0000 Subject: [PATCH] Follow-up r113939: Add divs to addWikiText(). --- includes/FileDeleteForm.php | 4 +--- includes/specials/SpecialUndelete.php | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) 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' ) . '
' ); } } } -- 2.20.1