table markup fix
authorMagnus Manske <magnusmanske@users.mediawiki.org>
Fri, 12 Sep 2003 07:13:48 +0000 (07:13 +0000)
committerMagnus Manske <magnusmanske@users.mediawiki.org>
Fri, 12 Sep 2003 07:13:48 +0000 (07:13 +0000)
includes/OutputPage.php

index f5b464c..eb4c969 100644 (file)
@@ -654,6 +654,15 @@ $t[$k] = "<caption>{$z}</caption\n" ;
              }
        }
     }
+
+# Closing open td, tr && table
+while ( count ( $td ) > 0 )
+{
+if ( array_pop ( $td ) ) $t[] = "</td>" ;
+if ( array_pop ( $tr ) ) $t[] = "</tr>" ;
+$t[] = "</table>" ;
+}
+
   $t = implode ( "\n" , $t ) ;
   return $t ;
 }