aboutsummaryrefslogtreecommitdiffstats
path: root/includes/templates
diff options
context:
space:
mode:
Diffstat (limited to 'includes/templates')
-rw-r--r--includes/templates/Usercreate.php32
-rw-r--r--includes/templates/Userlogin.php28
2 files changed, 30 insertions, 30 deletions
diff --git a/includes/templates/Usercreate.php b/includes/templates/Usercreate.php
index a39690a72c9e..3824be1251d4 100644
--- a/includes/templates/Usercreate.php
+++ b/includes/templates/Usercreate.php
@@ -28,13 +28,13 @@ class UsercreateTemplate extends BaseTemplate {
* UserCreateForm hook to add checkboxes to the create account form.
*/
function addInputItem( $name, $value, $type, $msg, $helptext = false ) {
- $this->data['extraInput'][] = array(
+ $this->data['extraInput'][] = [
'name' => $name,
'value' => $value,
'type' => $type,
'msg' => $msg,
'helptext' => $helptext,
- );
+ ];
}
function execute() {
@@ -84,7 +84,7 @@ class UsercreateTemplate extends BaseTemplate {
<span class="mw-ui-flush-right"><?php echo $this->getMsg( 'createacct-helpusername' )->parse(); ?></span>
</label>
<?php
- echo Html::input( 'wpName', $this->data['name'], 'text', array(
+ echo Html::input( 'wpName', $this->data['name'], 'text', [
'class' => 'mw-ui-input loginText',
'id' => 'wpName2',
'tabindex' => '1',
@@ -92,7 +92,7 @@ class UsercreateTemplate extends BaseTemplate {
'required',
'placeholder' => $this->getMsg( $this->data['loggedin'] ?
'createacct-another-username-ph' : 'userlogin-yourname-ph' )->text(),
- ) );
+ ] );
?>
</div>
@@ -113,14 +113,14 @@ class UsercreateTemplate extends BaseTemplate {
<div class="mw-ui-vform-field mw-row-password">
<label for='wpPassword2'><?php $this->msg( 'userlogin-yourpassword' ); ?></label>
<?php
- echo Html::input( 'wpPassword', null, 'password', array(
+ echo Html::input( 'wpPassword', null, 'password', [
'class' => 'mw-ui-input loginPassword',
'id' => 'wpPassword2',
'tabindex' => '3',
'size' => '20',
'required',
'placeholder' => $this->getMsg( 'createacct-yourpassword-ph' )->text()
- ) + User::passwordChangeInputAttribs() );
+ ] + User::passwordChangeInputAttribs() );
?>
</div>
@@ -143,14 +143,14 @@ class UsercreateTemplate extends BaseTemplate {
<div class="mw-ui-vform-field mw-row-password">
<label for='wpRetype'><?php $this->msg( 'createacct-yourpasswordagain' ); ?></label>
<?php
- echo Html::input( 'wpRetype', null, 'password', array(
+ echo Html::input( 'wpRetype', null, 'password', [
'class' => 'mw-ui-input loginPassword',
'id' => 'wpRetype',
'tabindex' => '5',
'size' => '20',
'required',
'placeholder' => $this->getMsg( 'createacct-yourpasswordagain-ph' )->text()
- ) + User::passwordChangeInputAttribs() );
+ ] + User::passwordChangeInputAttribs() );
?>
</div>
@@ -165,7 +165,7 @@ class UsercreateTemplate extends BaseTemplate {
?>
</label>
<?php
- echo Html::input( 'wpEmail', $this->data['email'], 'email', array(
+ echo Html::input( 'wpEmail', $this->data['email'], 'email', [
'class' => 'mw-ui-input loginText',
'id' => 'wpEmail',
'tabindex' => '6',
@@ -173,7 +173,7 @@ class UsercreateTemplate extends BaseTemplate {
'required' => $this->data['emailrequired'],
'placeholder' => $this->getMsg( $this->data['loggedin'] ?
'createacct-another-email-ph' : 'createacct-email-ph' )->text()
- ) );
+ ] );
?>
<?php } ?>
</div>
@@ -193,13 +193,13 @@ class UsercreateTemplate extends BaseTemplate {
<?php if ( $this->data['usereason'] ) { ?>
<div class="mw-ui-vform-field">
<label for='wpReason'><?php $this->msg( 'createacct-reason' ); ?></label>
- <?php echo Html::input( 'wpReason', $this->data['reason'], 'text', array(
+ <?php echo Html::input( 'wpReason', $this->data['reason'], 'text', [
'class' => 'mw-ui-input loginText',
'id' => 'wpReason',
'tabindex' => '8',
'size' => '20',
'placeholder' => $this->getMsg( 'createacct-reason-ph' )->text()
- ) ); ?>
+ ] ); ?>
</div>
<?php } ?>
@@ -265,15 +265,15 @@ class UsercreateTemplate extends BaseTemplate {
<?php
echo Html::submitButton(
$this->getMsg( $this->data['loggedin'] ? 'createacct-another-submit' : 'createacct-submit' ),
- array(
+ [
'id' => 'wpCreateaccount',
'name' => 'wpCreateaccount',
'tabindex' => $tabIndex++
- ),
- array(
+ ],
+ [
'mw-ui-block',
'mw-ui-constructive',
- )
+ ]
);
?>
</div>
diff --git a/includes/templates/Userlogin.php b/includes/templates/Userlogin.php
index f19c0f2b7588..c2b2df6f2f6d 100644
--- a/includes/templates/Userlogin.php
+++ b/includes/templates/Userlogin.php
@@ -67,15 +67,15 @@ class UserloginTemplate extends BaseTemplate {
$this->msg( 'userlogin-yourname' );
if ( $this->data['secureLoginUrl'] ) {
- echo Html::element( 'a', array(
+ echo Html::element( 'a', [
'href' => $this->data['secureLoginUrl'],
'class' => 'mw-ui-flush-right mw-secure',
- ), $this->getMsg( 'userlogin-signwithsecure' )->text() );
+ ], $this->getMsg( 'userlogin-signwithsecure' )->text() );
}
?>
</label>
<?php
- echo Html::input( 'wpName', $this->data['name'], 'text', array(
+ echo Html::input( 'wpName', $this->data['name'], 'text', [
'class' => 'loginText mw-ui-input',
'id' => 'wpName1',
'tabindex' => '1',
@@ -85,7 +85,7 @@ class UserloginTemplate extends BaseTemplate {
// Set focus to this field if it's blank.
'autofocus' => !$this->data['name'],
'placeholder' => $this->getMsg( 'userlogin-yourname-ph' )->text()
- ) );
+ ] );
?>
</div>
@@ -96,14 +96,14 @@ class UserloginTemplate extends BaseTemplate {
?>
</label>
<?php
- echo Html::input( 'wpPassword', null, 'password', array(
+ echo Html::input( 'wpPassword', null, 'password', [
'class' => 'loginPassword mw-ui-input',
'id' => 'wpPassword1',
'tabindex' => '2',
// Set focus to this field if username is filled in.
'autofocus' => (bool)$this->data['name'],
'placeholder' => $this->getMsg( 'userlogin-yourpassword-ph' )->text()
- ) );
+ ] );
?>
</div>
@@ -142,14 +142,14 @@ class UserloginTemplate extends BaseTemplate {
<div class="mw-ui-vform-field">
<?php
- $attrs = array(
+ $attrs = [
'id' => 'wpLoginAttempt',
'name' => 'wpLoginAttempt',
'tabindex' => '6',
- );
- $modifiers = array(
+ ];
+ $modifiers = [
'mw-ui-progressive',
- );
+ ];
echo Html::submitButton( $this->getMsg( 'pt-login-button' )->text(), $attrs, $modifiers );
?>
</div>
@@ -158,11 +158,11 @@ class UserloginTemplate extends BaseTemplate {
<?php
echo Html::element(
'a',
- array(
+ [
'href' => Skin::makeInternalOrExternalUrl(
wfMessage( 'helplogin-url' )->inContentLanguage()->text()
),
- ),
+ ],
$this->getMsg( 'userlogin-helplink2' )->text()
);
?>
@@ -172,9 +172,9 @@ class UserloginTemplate extends BaseTemplate {
if ( $this->data['useemail'] && $this->data['canreset'] && $this->data['resetlink'] === true ) {
echo Html::rawElement(
'div',
- array(
+ [
'class' => 'mw-ui-vform-field mw-form-related-link-container',
- ),
+ ],
Linker::link(
SpecialPage::getTitleFor( 'PasswordReset' ),
$this->getMsg( 'userlogin-resetpassword-link' )->escaped()