diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2015-12-17 09:15:42 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2015-12-17 09:44:51 +0100 |
commit | a1789ddde42033f1b05cc4929491214ee6e79383 (patch) | |
tree | 63615735c4ddffaaabf2428946bb26f90899f7bf /includes/htmlform/VFormHTMLForm.php | |
parent | 9e06a62f265e3a2aaabecc598d4bc617e06fa32d (diff) |
Update to MediaWiki 1.26.0
Diffstat (limited to 'includes/htmlform/VFormHTMLForm.php')
-rw-r--r-- | includes/htmlform/VFormHTMLForm.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/includes/htmlform/VFormHTMLForm.php b/includes/htmlform/VFormHTMLForm.php index 0c0e4252..3788379d 100644 --- a/includes/htmlform/VFormHTMLForm.php +++ b/includes/htmlform/VFormHTMLForm.php @@ -65,7 +65,7 @@ class VFormHTMLForm extends HTMLForm { protected function getFormAttributes() { $attribs = parent::getFormAttributes(); - array_push( $attribs['class'], 'mw-ui-vform', 'mw-ui-container' ); + $attribs['class'] = array( 'mw-ui-vform', 'mw-ui-container', 'visualClear' ); return $attribs; } @@ -95,8 +95,10 @@ class VFormHTMLForm extends HTMLForm { $attribs['class'] = array( 'mw-htmlform-submit', 'mw-ui-button mw-ui-big mw-ui-block', - $this->mSubmitModifierClass, ); + foreach ( $this->mSubmitFlags as $flag ) { + $attribs['class'][] = 'mw-ui-' . $flag; + } $buttons .= Xml::submitButton( $this->getSubmitText(), $attribs ) . "\n"; } |