Use Html::element() for Xml::submitButton()
authorAryeh Gregor <simetrical@users.mediawiki.org>
Wed, 27 Jan 2010 18:59:52 +0000 (18:59 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Wed, 27 Jan 2010 18:59:52 +0000 (18:59 +0000)
There are a bunch of other places where we could switch to Html methods
here too.  See
<http://www.mediawiki.org/wiki/Special:Code/MediaWiki/61130#c5451>.

includes/Xml.php

index 0cd052b..45517cc 100644 (file)
@@ -395,7 +395,7 @@ class Xml {
         * @return string HTML
         */
        public static function submitButton( $value, $attribs=array() ) {
-               return self::element( 'input', array( 'type' => 'submit', 'value' => $value ) + $attribs );
+               return Html::element( 'input', array( 'type' => 'submit', 'value' => $value ) + $attribs );
        }
 
        /**