Restore Signupstart and Signupend messages for account creation
authorMark A. Hershberger <mah@everybody.org>
Sat, 23 Nov 2013 05:32:59 +0000 (00:32 -0500)
committerLegoktm <legoktm.wikipedia@gmail.com>
Sat, 30 Nov 2013 18:29:54 +0000 (18:29 +0000)
This was removed during the redesign of the login process in
I50f25583, but I found that 5-10% of non-wmf wiki sites used this
message to display notices, previously.  We should keep this around or
at the very least provide advance notice for people.

Bug: 56455
Change-Id: I79423c1a05f0359c902d1940c3ffcd5e509dcf97

includes/templates/Usercreate.php

index 4750af9..fcd492c 100644 (file)
@@ -46,6 +46,9 @@ class UsercreateTemplate extends BaseTemplate {
                <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">
@@ -262,6 +265,9 @@ class UsercreateTemplate extends BaseTemplate {
                        <?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>