From 9c7557faef1b849695745e6f2884c820faffbc56 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sat, 6 Oct 2012 17:28:09 +0200 Subject: [PATCH] Use parseAsBlock() instead of parse() to show the error message in OutputPage::showErrorPage() When a message name is passed, addWikiMsgArray() is used, so it adds a

arround the result. Do the same when a Message object is passed to that method. Change-Id: Ie97ad9a921ae3fc6d327531b0ace64b6a08e1fa2 --- includes/OutputPage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 02f22d994d..45704bc2da 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -2056,7 +2056,7 @@ class OutputPage extends ContextSource { $this->prepareErrorPage( $title ); if ( $msg instanceof Message ){ - $this->addHTML( $msg->parse() ); + $this->addHTML( $msg->parseAsBlock() ); } else { $this->addWikiMsgArray( $msg, $params ); } -- 2.20.1