Use Html::element instead of Xml::element
authorNiklas Laxström <nikerabbit@users.mediawiki.org>
Sat, 23 Jan 2010 20:15:39 +0000 (20:15 +0000)
committerNiklas Laxström <nikerabbit@users.mediawiki.org>
Sat, 23 Jan 2010 20:15:39 +0000 (20:15 +0000)
It produces nicer output and has no braindeadiness with empty contents

includes/OutputPage.php

index eed71f2..26e1d60 100644 (file)
@@ -129,12 +129,11 @@ class OutputPage {
                        $path =  "{$wgStylePath}/common/{$file}";
                }
                $this->addScript( 
-                       Xml::element( 'script', 
+                       Html::element( 'script', 
                                array(
                                        'type' => $wgJsMimeType,
                                        'src' => "$path?$wgStyleVersion",
-                               ),
-                               '', false
+                               )
                        )
                );
        }