summaryrefslogtreecommitdiff
path: root/includes/htmlform/VFormHTMLForm.php
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-05-01 15:32:59 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-05-01 15:32:59 -0400
commit6dc1997577fab2c366781fd7048144935afa0012 (patch)
tree8918d28c7ab4342f0738985e37af1dfc42d0e93a /includes/htmlform/VFormHTMLForm.php
parent150f94f051128f367bc89f6b7e5f57eb2a69fc62 (diff)
parentfa89acd685cb09cdbe1c64cbb721ec64975bbbc1 (diff)
Merge commit 'fa89acd'
# Conflicts: # .gitignore # extensions/ArchInterWiki.sql
Diffstat (limited to 'includes/htmlform/VFormHTMLForm.php')
-rw-r--r--includes/htmlform/VFormHTMLForm.php6
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";
}