From: Brion Vibber Date: Thu, 2 Mar 2006 04:57:07 +0000 (+0000) Subject: * (bug 5141) Gracefully handle the new account link when createaccount off X-Git-Tag: 1.6.0~242 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=03683dc7608b7b903944ff168f7f4d13ec12d8ba;p=lhc%2Fweb%2Fwiklou.git * (bug 5141) Gracefully handle the new account link when createaccount off --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 1064fd1a2a..d9e0d34b31 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 === diff --git a/includes/SpecialUserlogin.php b/includes/SpecialUserlogin.php index c6946ab143..7bdd3dce63 100644 --- a/includes/SpecialUserlogin.php +++ b/includes/SpecialUserlogin.php @@ -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 );