Form improvements when creating another's account
[lhc/web/wiklou.git] / includes / specials / SpecialUserlogin.php
index b1a123e..6e557f3 100644 (file)
@@ -1153,6 +1153,12 @@ class LoginForm extends SpecialPage {
                $template->set( 'cansecurelogin', ( $wgSecureLogin === true ) );
                $template->set( 'stickHTTPS', $this->mStickHTTPS );
 
+               if ( $this->mType === 'signup' && $user->isLoggedIn() ) {
+                       $template->set( 'createAnother', true );
+               } else {
+                       $template->set( 'createAnother', false );
+               }
+
                if ( $this->mType == 'signup' ) {
                        if ( !self::getCreateaccountToken() ) {
                                self::setCreateaccountToken();