*Add U param to parseinline regexp to fix regression that left the \n in parsed messa...
authorAaron Schulz <aaron@users.mediawiki.org>
Tue, 29 May 2007 19:53:23 +0000 (19:53 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Tue, 29 May 2007 19:53:23 +0000 (19:53 +0000)
includes/GlobalFunctions.php

index 0505109..88e1fe5 100644 (file)
@@ -592,7 +592,7 @@ function wfMsgExt( $key, $options ) {
        } elseif ( in_array('parseinline', $options) ) {
                $string = $wgOut->parse( $string, true, true );
                $m = array();
-               if( preg_match( '/^<p>(.*)\n?<\/p>$/s', $string, $m ) ) {
+               if( preg_match( '/^<p>(.*)\n?<\/p>$/sU', $string, $m ) ) {
                        $string = $m[1];
                }
        } elseif ( in_array('parsemag', $options) ) {