Fix fail from r94473
authorSam Reed <reedy@users.mediawiki.org>
Sun, 14 Aug 2011 19:50:08 +0000 (19:50 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Sun, 14 Aug 2011 19:50:08 +0000 (19:50 +0000)
Append to the string, don't replace it

includes/Xml.php

index f937003..c2fa819 100644 (file)
@@ -794,7 +794,7 @@ class Xml {
                $s = Xml::openElement( 'table', $attribs );
 
                if ( is_array( $headers ) ) {
-                       $s = Xml::openElement( 'thead', $attribs );
+                       $s .= Xml::openElement( 'thead', $attribs );
 
                        foreach( $headers as $id => $header ) {
                                $attribs = array();
@@ -805,7 +805,7 @@ class Xml {
 
                                $s .= Xml::element( 'th', $attribs, $header );
                        }
-                       $s = Xml::closeElement( 'thead' );
+                       $s .= Xml::closeElement( 'thead' );
                }
 
                foreach( $rows as $id => $row ) {