From e159eb114e44e526f75a07892300a2f7f57827c1 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Sun, 14 Aug 2011 19:50:08 +0000 Subject: [PATCH] Fix fail from r94473 Append to the string, don't replace it --- includes/Xml.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/Xml.php b/includes/Xml.php index f937003289..c2fa8191d9 100644 --- a/includes/Xml.php +++ b/includes/Xml.php @@ -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 ) { -- 2.20.1