Fixup fixme on r67819
authorSam Reed <reedy@users.mediawiki.org>
Thu, 6 Jan 2011 03:24:35 +0000 (03:24 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Thu, 6 Jan 2011 03:24:35 +0000 (03:24 +0000)
includes/parser/Preprocessor_DOM.php

index 2b635f7..f8e549d 100644 (file)
@@ -37,15 +37,14 @@ class Preprocessor_DOM implements Preprocessor {
 
        function newPartNodeArray( $values ) {
                //NOTE: DOM manipulation is slower than building & parsing XML! (or so Tim sais)
-               $xml = "";
-               $xml .= "<list>";
+               $xml = "<list>";
 
                foreach ( $values as $k => $val ) {
                         
                        if ( is_int( $k ) ) {
                                $xml .= "<part><name index=\"$k\"/><value>" . htmlspecialchars( $val ) ."</value></part>";
                        } else {
-                               $xml .= "<part><name>" . htmlspecialchars( $k ) . "</name>=<value>" . htmlspecialchars( $val ) . "</value></part>";
+                               $xml .= "<part><name>" . htmlspecialchars( $k ) . "</name><value>" . htmlspecialchars( $val ) . "</value></part>";
                        }
                }