From: Aryeh Gregor Date: Fri, 21 Aug 2009 21:57:53 +0000 (+0000) Subject: Make Xml::hidden() a wrapper around Html::hidden() X-Git-Tag: 1.31.0-rc.0~40143 X-Git-Url: http://git.cyclocoop.org/data/%24self?a=commitdiff_plain;h=7f937555e5e32eff7e4a203b4316ed741c6a932a;p=lhc%2Fweb%2Fwiklou.git Make Xml::hidden() a wrapper around Html::hidden() HTML-specific stuff should go into the Html class; it doesn't belong in Xml. --- diff --git a/includes/Xml.php b/includes/Xml.php index 5359f32362..88bbadc0bb 100644 --- a/includes/Xml.php +++ b/includes/Xml.php @@ -398,17 +398,10 @@ class Xml { } /** - * Convenience function to build an HTML hidden form field. - * @param $name String: name attribute for the field - * @param $value String: value for the hidden field - * @param $attribs Array: optional custom attributes - * @return string HTML + * @deprecated Synonymous to Html::hidden() */ - public static function hidden( $name, $value, $attribs=array() ) { - return self::element( 'input', array( - 'name' => $name, - 'type' => 'hidden', - 'value' => $value ) + $attribs ); + public static function hidden( $name, $value, $attribs = array() ) { + return Html::hidden( $name, $value, $attribs ); } /**