From: Gabriel Wicke Date: Thu, 15 Apr 2004 16:01:39 +0000 (+0000) Subject: forgot to move the actual preg_match as well, p instead of div for center X-Git-Tag: 1.3.0beta1~425 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=919db72fdfca7cfc3bc0e1ff79388ee96579e9ac;p=lhc%2Fweb%2Fwiklou.git forgot to move the actual preg_match as well, p instead of div for center --- diff --git a/includes/Parser.php b/includes/Parser.php index f03d195dec..49fdedcc92 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -96,15 +96,16 @@ class Parser $fixtags = array( "/
/i" => '
', "/
/i" => '
', - "/
/i"=>'
', - "/<\\/center *>/i" => '
', + "/
/i"=>'

', + "/<\\/center *>/i" => '

', # Clean up spare ampersands; note that we probably ought to be # more careful about named entities. '/&(?!:amp;|#[Xx][0-9A-fa-f]+;|#[0-9]+;|[a-zA-Z0-9]+;)/' => '&' ); + $text = preg_replace( array_keys($fixtags), array_values($fixtags), $text ); + # only once and last $text = $this->doBlockLevels( $text, $linestart ); - $text = preg_replace( array_keys($fixtags), array_values($fixtags), $text ); $this->mOutput->setText( $text ); wfProfileOut( $fname );