From 54149c0cf872eed75e65fa0d4ca05bfd4cbcb8c5 Mon Sep 17 00:00:00 2001 From: Aryeh Gregor Date: Sun, 19 Jul 2009 06:08:09 +0000 Subject: [PATCH] Allow wikitext to be used in nologin, etc. These are the primary messages on Special:UserLogin, so it's reasonable to permit formatting. --- includes/specials/SpecialUserlogin.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/specials/SpecialUserlogin.php b/includes/specials/SpecialUserlogin.php index def3ac9404..55939567d6 100644 --- a/includes/specials/SpecialUserlogin.php +++ b/includes/specials/SpecialUserlogin.php @@ -390,14 +390,14 @@ class LoginForm { global $wgPasswordAttemptThrottle; - $throttleCount=0; - if ( is_array($wgPasswordAttemptThrottle) ) { + $throttleCount = 0; + if ( is_array( $wgPasswordAttemptThrottle ) ) { $throttleKey = wfMemcKey( 'password-throttle', wfGetIP(), md5( $this->mName ) ); $count = $wgPasswordAttemptThrottle['count']; $period = $wgPasswordAttemptThrottle['seconds']; global $wgMemc; - $throttleCount = $wgMemc->get($throttleKey); + $throttleCount = $wgMemc->get( $throttleKey ); if ( !$throttleCount ) { $wgMemc->add( $throttleKey, 1, $period ); // start counter } else if ( $throttleCount < $count ) { @@ -872,7 +872,7 @@ class LoginForm { # Don't show a "create account" link if the user can't if( $this->showCreateOrLoginLink( $wgUser ) ) - $template->set( 'link', wfMsgHtml( $linkmsg, $link ) ); + $template->set( 'link', wfMsgWikiHtml( $linkmsg, $link ) ); else $template->set( 'link', '' ); -- 2.20.1