From: Bartosz DziewoƄski Date: Mon, 13 Nov 2017 12:39:53 +0000 (+0100) Subject: MWExceptionRenderer: Wrap error message in a paragraph X-Git-Tag: 1.31.0-rc.0~1497^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/journal.php?a=commitdiff_plain;h=7e3f457e80e0012a6f981c73ade06e2baf29e78e;p=lhc%2Fweb%2Fwiklou.git MWExceptionRenderer: Wrap error message in a paragraph Bug: T180284 Change-Id: I71563fd6932d35c7298b185bd7c05c8f1dce63f8 --- diff --git a/includes/exception/MWExceptionRenderer.php b/includes/exception/MWExceptionRenderer.php index bb5e4f4eda..3a18cca96f 100644 --- a/includes/exception/MWExceptionRenderer.php +++ b/includes/exception/MWExceptionRenderer.php @@ -128,7 +128,7 @@ class MWExceptionRenderer { // Show any custom GUI message before the details if ( $e instanceof MessageSpecifier ) { - $wgOut->addHTML( Message::newFromSpecifier( $e )->escaped() ); + $wgOut->addHTML( Html::element( 'p', [], Message::newFromSpecifier( $e )->text() ) ); } $wgOut->addHTML( self::getHTML( $e ) );