diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2015-06-04 07:31:04 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2015-06-04 07:58:39 +0200 |
commit | f6d65e533c62f6deb21342d4901ece24497b433e (patch) | |
tree | f28adf0362d14bcd448f7b65a7aaf38650f923aa /includes/templates/Usercreate.php | |
parent | c27b2e832fe25651ef2410fae85b41072aae7519 (diff) |
Update to MediaWiki 1.25.1
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', ) ); ?> |