* (bug 5141) Gracefully handle the new account link when createaccount off
authorBrion Vibber <brion@users.mediawiki.org>
Thu, 2 Mar 2006 04:57:07 +0000 (04:57 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Thu, 2 Mar 2006 04:57:07 +0000 (04:57 +0000)
RELEASE-NOTES
includes/SpecialUserlogin.php

index 1064fd1..d9e0d34 100644 (file)
@@ -671,6 +671,7 @@ fully support the editing toolbar, but was found to be too confusing.
 * Purge thumbnails and metadata cache for action=purge on an image page
 * (bug 4273) Bounce back with a message when attempting to submit a new comment 
   with an empty main textbox (user probably hit Enter in subject field)
+* (bug 5141) Gracefully handle the new account link when createaccount off
 
 
 === Caveats ===
index c6946ab..7bdd3dc 100644 (file)
@@ -487,6 +487,8 @@ class LoginForm {
                # Don't show a "create account" link if the user can't
                if( $this->showCreateOrLoginLink( $wgUser ) )
                        $template->set( 'link', wfMsgHtml( $linkmsg, $link ) );
+               else
+                       $template->set( 'link', '' );
                
                $template->set( 'header', '' );
                $template->set( 'name', $this->mName );