From 03683dc7608b7b903944ff168f7f4d13ec12d8ba Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Thu, 2 Mar 2006 04:57:07 +0000 Subject: [PATCH] * (bug 5141) Gracefully handle the new account link when createaccount off --- RELEASE-NOTES | 1 + includes/SpecialUserlogin.php | 2 ++ 2 files changed, 3 insertions(+) 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 ); -- 2.20.1