From c1f9b1f7b1b77776192048005dcc66dcf3df2bfb Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Sat, 27 Dec 2014 15:41:37 +0100 Subject: Update to MediaWiki 1.24.1 --- includes/htmlform/HTMLButtonField.php | 42 +++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 includes/htmlform/HTMLButtonField.php (limited to 'includes/htmlform/HTMLButtonField.php') diff --git a/includes/htmlform/HTMLButtonField.php b/includes/htmlform/HTMLButtonField.php new file mode 100644 index 00000000..09c0ad97 --- /dev/null +++ b/includes/htmlform/HTMLButtonField.php @@ -0,0 +1,42 @@ + 'mw-htmlform-submit ' . $this->mClass, + 'id' => $this->mID, + ) + $this->getAttributes( array( 'disabled', 'tabindex' ) ); + + return Html::input( $this->mName, $value, $this->buttonType, $attr ); + } + + protected function needsLabel() { + return false; + } + + /** + * Button cannot be invalid + * + * @param string $value + * @param array $alldata + * + * @return bool + */ + public function validate( $value, $alldata ) { + return true; + } +} -- cgit v1.2.3-54-g00ecf