div again, we don't really know what will be inside the center tags. Could be another...
authorGabriel Wicke <gwicke@users.mediawiki.org>
Thu, 15 Apr 2004 16:06:25 +0000 (16:06 +0000)
committerGabriel Wicke <gwicke@users.mediawiki.org>
Thu, 15 Apr 2004 16:06:25 +0000 (16:06 +0000)
includes/Parser.php

index 49fdedc..6761647 100644 (file)
@@ -96,8 +96,8 @@ class Parser
                $fixtags = array(
                        "/<hr *>/i" => '<hr/>',
                        "/<br *>/i" => '<br/>',
-                       "/<center *>/i"=>'<p style="text-align:center;">',
-                       "/<\\/center *>/i" => '</p>',
+                       "/<center *>/i"=>'<div style="text-align:center;">',
+                       "/<\\/center *>/i" => '</div>',
                        # 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]+;)/' => '&amp;'