Updated fix for bug 869949 'Lists inside tables' as suggested by TomK32
authorMr. E23 <e23@users.mediawiki.org>
Mon, 5 Jan 2004 00:52:07 +0000 (00:52 +0000)
committerMr. E23 <e23@users.mediawiki.org>
Mon, 5 Jan 2004 00:52:07 +0000 (00:52 +0000)
includes/OutputPage.php

index 25c0fd6..7c5c927 100644 (file)
@@ -709,18 +709,19 @@ $t[] = "</table>" ;
                $text = preg_replace( "/(^|\n)-----*/", "\\1<hr>", $text );
                $text = str_replace ( "<HR>", "<hr>", $text );
 
-               $text = $this->doAllQuotes( $text );
-               $text = $this->doHeadings( $text );
-               $text = $this->doTableStuff ( $text ) ;
-               $text = $this->doBlockLevels( $text, $linestart );
-               
-               if($wgUseDynamicDates) {
-                       global $wgDateFormatter;
-                       $text = $wgDateFormatter->reformat( $wgUser->getOption("date"), $text );
-               }
+                $text = $this->doAllQuotes( $text );
+                $text = $this->doHeadings( $text );
+
+                if($wgUseDynamicDates) {
+                        global $wgDateFormatter;
+                        $text = $wgDateFormatter->reformat( $wgUser->getOption("date"), $text );
+                }
+
+                $text = $this->replaceExternalLinks( $text );
+                $text = $this->replaceInternalLinks ( $text );
 
-               $text = $this->replaceExternalLinks( $text );
-               $text = $this->replaceInternalLinks ( $text );
+                $text = $this->doTableStuff ( $text ) ;
+                $text = $this->doBlockLevels( $text, $linestart );
 
                $text = $this->magicISBN( $text );
                $text = $this->magicRFC( $text );