Merge "Use parseAsBlock() instead of parse() to show the error message in OutputPage...
authorSiebrand <siebrand@wikimedia.org>
Tue, 9 Oct 2012 08:58:25 +0000 (08:58 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Tue, 9 Oct 2012 08:58:25 +0000 (08:58 +0000)
includes/OutputPage.php

index 4fa33ac..e5361bc 100644 (file)
@@ -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 );
                }