Merge "Restore Signupstart and Signupend messages for account creation"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Fri, 6 Dec 2013 22:57:08 +0000 (22:57 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Fri, 6 Dec 2013 22:57:08 +0000 (22:57 +0000)
1  2 
includes/templates/Usercreate.php

@@@ -46,6 -46,9 +46,9 @@@ class UsercreateTemplate extends BaseTe
                <div id="languagelinks">
                        <p><?php $this->html( 'languages' ); ?></p>
                </div>
+       <?php }
+             if ( !wfMessage( 'signupstart' )->isDisabled() ) { ?>
+               <div id="signupstart"><?php $this->msgWiki( 'signupstart' ); ?></div>
        <?php } ?>
        <div id="userloginForm">
                <h2 class="createaccount-join">
  
                        <?php
                        if ( $this->data['usedomain'] ) {
 -                              $doms = "";
 +                              $select = new XmlSelect( 'wpDomain', false, $this->data['domain'] );
 +                              $select->setAttribute( 'tabindex', 4 );
                                foreach ( $this->data['domainnames'] as $dom ) {
 -                                      $doms .= "<option>" . htmlspecialchars( $dom ) . "</option>";
 +                                      $select->addOption( $dom );
                                }
                        ?>
                                <div id="mw-user-domain-section">
                                        <label for="wpDomain"><?php $this->msg( 'yourdomainname' ); ?></label>
                                        <div class="mw-input">
 -                                              <select name="wpDomain" value="<?php $this->text( 'domain' ); ?>" tabindex="4">
 -                                                      <?php echo $doms ?>
 -                                              </select>
 +                                              <?php echo $select->getHTML(); ?>
                                        </div>
                                </div>
                        <?php } ?>
                        <?php if ( $this->haveData( 'uselang' ) ) { ?><input type="hidden" name="uselang" value="<?php $this->text( 'uselang' ); ?>" /><?php } ?>
                        <?php if ( $this->haveData( 'token' ) ) { ?><input type="hidden" name="wpCreateaccountToken" value="<?php $this->text( 'token' ); ?>" /><?php } ?>
                </form>
+               <?php if ( !wfMessage( 'signupend' )->isDisabled() ) { ?>
+                       <div id="signupend"><?php $this->html( 'signupend' ); ?></div>
+               <?php } ?>
        </div>
        <div class="mw-createacct-benefits-container">
                <h2><?php $this->msg( 'createacct-benefit-heading' ); ?></h2>