dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "mediawiki.util: Merge 'jquery.accessKeyLabel' into this module"
[lhc/web/wiklou.git]
/
includes
/
htmlform
/
fields
/
HTMLButtonField.php
diff --git
a/includes/htmlform/fields/HTMLButtonField.php
b/includes/htmlform/fields/HTMLButtonField.php
index
7f7f718
..
84719a7
100644
(file)
--- 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;
public function __construct( $info ) {
$info['nodata'] = true;
+
+ $this->setShowEmptyLabel( false );
+
+ parent::__construct( $info );
+
if ( isset( $info['flags'] ) ) {
$this->mFlags = $info['flags'];
}
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'];
}
} elseif ( isset( $info['buttonlabel-raw'] ) ) {
$this->buttonLabel = $info['buttonlabel-raw'];
}
-
- $this->setShowEmptyLabel( false );
-
- parent::__construct( $info );
}
public function getInputHTML( $value ) {
}
public function getInputHTML( $value ) {