From: Niklas Laxström Date: Sat, 23 Jan 2010 20:15:39 +0000 (+0000) Subject: Use Html::element instead of Xml::element X-Git-Tag: 1.31.0-rc.0~38134 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=c2c5ef803a52e571e93a38712ddd5b7e07d0c18a;p=lhc%2Fweb%2Fwiklou.git Use Html::element instead of Xml::element It produces nicer output and has no braindeadiness with empty contents --- diff --git a/includes/OutputPage.php b/includes/OutputPage.php index eed71f2f93..26e1d60524 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -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 + ) ) ); }