From: Aryeh Gregor Date: Wed, 27 Jan 2010 18:59:52 +0000 (+0000) Subject: Use Html::element() for Xml::submitButton() X-Git-Tag: 1.31.0-rc.0~38078 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/recherche.php?a=commitdiff_plain;h=b621f9f104b5b4860c9115e7c7f78e6c25a94ff3;hp=b1e2b87b95785202af1ca2caf2083acb66d61e79;p=lhc%2Fweb%2Fwiklou.git Use Html::element() for Xml::submitButton() There are a bunch of other places where we could switch to Html methods here too. See . --- diff --git a/includes/Xml.php b/includes/Xml.php index 0cd052b6e5..45517ccf42 100644 --- a/includes/Xml.php +++ b/includes/Xml.php @@ -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 ); } /**