From: Raimond Spekking Date: Thu, 29 Jan 2009 07:01:51 +0000 (+0000) Subject: Add a newline in front of the message to avoid wrong parsing when the message text... X-Git-Tag: 1.31.0-rc.0~43141 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/password.php?a=commitdiff_plain;h=4b5874d6065c673f6e3e59a405cdc9d142267190;p=lhc%2Fweb%2Fwiklou.git Add a newline in front of the message to avoid wrong parsing when the message text starts with line-start-markup such as a table or list. The missing newline was the real culprit of the breakage seen in http://www.mediawiki.org/wiki/Special:Code/MediaWiki/45651#c1531 --- diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 0513f1421d..26b46987aa 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -1846,7 +1846,7 @@ class OutputPage { $args = array(); $name = $spec; } - $s = str_replace( '$' . ($n+1), wfMsgExt( $name, $options, $args ), $s ); + $s = str_replace( '$' . ( $n + 1 ), "\n" . wfMsgExt( $name, $options, $args ), $s ); } $this->addHTML( $this->parse( $s, /*linestart*/true, /*uilang*/true ) ); }