From 919db72fdfca7cfc3bc0e1ff79388ee96579e9ac Mon Sep 17 00:00:00 2001 From: Gabriel Wicke Date: Thu, 15 Apr 2004 16:01:39 +0000 Subject: [PATCH] forgot to move the actual preg_match as well, p instead of div for center --- includes/Parser.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 ); -- 2.20.1