X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fhtmlform%2Ffields%2FHTMLButtonField.php;h=84719a7adddd88661b6f1146139781fd11c1f5a6;hb=1791c928939f906627b9fb86c57ff8d9d626cbdb;hp=7f7f718a60e2fa78162b1087e473faca72ae23d2;hpb=079b3d5a25698b83c05e665c49da71227bc374e0;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/htmlform/fields/HTMLButtonField.php b/includes/htmlform/fields/HTMLButtonField.php index 7f7f718a60..84719a7add 100644 --- a/includes/htmlform/fields/HTMLButtonField.php +++ b/includes/htmlform/fields/HTMLButtonField.php @@ -34,6 +34,11 @@ class HTMLButtonField extends HTMLFormField { public function __construct( $info ) { $info['nodata'] = true; + + $this->setShowEmptyLabel( false ); + + parent::__construct( $info ); + if ( isset( $info['flags'] ) ) { $this->mFlags = $info['flags']; } @@ -55,10 +60,6 @@ class HTMLButtonField extends HTMLFormField { } elseif ( isset( $info['buttonlabel-raw'] ) ) { $this->buttonLabel = $info['buttonlabel-raw']; } - - $this->setShowEmptyLabel( false ); - - parent::__construct( $info ); } public function getInputHTML( $value ) {