diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-05-01 15:30:02 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-05-01 15:30:02 -0400 |
commit | 1de335ad3f395ca6861085393ba366a9e3fb4a0d (patch) | |
tree | f1fdd326034e05177596851be6a7127615d81498 /includes/templates/Usercreate.php | |
parent | 9c75fa8ff6d4d38ef552c00fef5969fb154765e8 (diff) | |
parent | f6d65e533c62f6deb21342d4901ece24497b433e (diff) |
Merge commit 'f6d65'
# Conflicts:
# skins/ArchLinux/ArchLinux.php
Diffstat (limited to 'includes/templates/Usercreate.php')
-rw-r--r-- | includes/templates/Usercreate.php | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/includes/templates/Usercreate.php b/includes/templates/Usercreate.php index 01da0bd7..f09b6bba 100644 --- a/includes/templates/Usercreate.php +++ b/includes/templates/Usercreate.php @@ -53,7 +53,7 @@ class UsercreateTemplate extends BaseTemplate { <div id="userloginForm"> <form name="userlogin2" id="userlogin2" class="mw-ui-vform" method="post" action="<?php $this->text( 'action' ); ?>"> <section class="mw-form-header"> - <?php $this->html( 'header' ); /* extensions such as ConfirmEdit add form HTML here */ ?> + <?php $this->html( 'header' ); ?> </section> <!-- This element is used by the mediawiki.special.userlogin.signup.js module. --> <div @@ -217,8 +217,10 @@ class UsercreateTemplate extends BaseTemplate { <?php if ( !empty( $inputItem['value'] ) ) { echo 'checked="checked"'; } ?> - ><label for="<?php echo htmlspecialchars( $inputItem['name'] ); ?>"></label> - </div><?php $this->msgHtml( $inputItem['msg'] ); ?> + ><label for="<?php echo htmlspecialchars( $inputItem['name'] ); ?>"> + <?php $this->msg( $inputItem['msg'] ); ?> + </label> + </div> <?php } else { // Not a checkbox. @@ -248,20 +250,25 @@ class UsercreateTemplate extends BaseTemplate { } } - // JS attempts to move the image CAPTCHA below this part of the form, - // so skip one index. + // A separate placeholder for any inserting any extrafields, e.g used by ConfirmEdit extension + if ( $this->haveData( 'extrafields' ) ) { + echo $this->data['extrafields']; + } + // skip one index. $tabIndex++; ?> <div class="mw-ui-vform-field mw-submit"> <?php - echo Html::input( - 'wpCreateaccount', + echo Html::submitButton( $this->getMsg( $this->data['loggedin'] ? 'createacct-another-submit' : 'createacct-submit' ), - 'submit', array( - 'class' => "mw-ui-button mw-ui-big mw-ui-block mw-ui-constructive", 'id' => 'wpCreateaccount', + 'name' => 'wpCreateaccount', 'tabindex' => $tabIndex++ + ), + array( + 'mw-ui-block', + 'mw-ui-constructive', ) ); ?> |