Default $attribs to an array in expandAttributes()
authorAaron Schulz <aaron@users.mediawiki.org>
Wed, 16 Sep 2009 22:52:15 +0000 (22:52 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Wed, 16 Sep 2009 22:52:15 +0000 (22:52 +0000)
includes/Html.php

index 1010fc3..a841d83 100644 (file)
@@ -286,7 +286,7 @@ class Html {
         * @return string HTML fragment that goes between element name and '>'
         *   (starting with a space if at least one attribute is output)
         */
-       public static function expandAttributes( $attribs ) {
+       public static function expandAttributes( $attribs = array() ) {
                global $wgHtml5, $wgWellFormedXml;
 
                $ret = '';