Merge "Add SelfLinkBeginHook"
[lhc/web/wiklou.git] / includes / htmlform / HTMLHiddenField.php
index 648e297..6ea95ed 100644 (file)
@@ -1,17 +1,18 @@
 <?php
+
 class HTMLHiddenField extends HTMLFormField {
        public function __construct( $params ) {
                parent::__construct( $params );
 
                # Per HTML5 spec, hidden fields cannot be 'required'
-               # http://dev.w3.org/html5/spec/states-of-the-type-attribute.html#hidden-state
-               unset( $this->mParams[ 'required' ] );
+               # http://www.w3.org/TR/html5/forms.html#hidden-state-%28type=hidden%29
+               unset( $this->mParams['required'] );
        }
 
        public function getTableRow( $value ) {
                $params = array();
                if ( $this->mID ) {
-                       $params[ 'id' ] = $this->mID;
+                       $params['id'] = $this->mID;
                }
 
                $this->mParent->addHiddenField( $this->mName, $this->mDefault, $params );
@@ -36,4 +37,4 @@ class HTMLHiddenField extends HTMLFormField {
        public function getInputHTML( $value ) {
                return '';
        }
-}
\ No newline at end of file
+}