Add a newline in front of the message to avoid wrong parsing when the message text...
authorRaimond Spekking <raymond@users.mediawiki.org>
Thu, 29 Jan 2009 07:01:51 +0000 (07:01 +0000)
committerRaimond Spekking <raymond@users.mediawiki.org>
Thu, 29 Jan 2009 07:01:51 +0000 (07:01 +0000)
The missing newline was the real culprit of the breakage seen in http://www.mediawiki.org/wiki/Special:Code/MediaWiki/45651#c1531

includes/OutputPage.php

index 0513f14..26b4698 100644 (file)
@@ -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 ) );
        }