Index: trunk/phase3/includes/specials/SpecialUserlogin.php |
— | — | @@ -390,14 +390,14 @@ |
391 | 391 | |
392 | 392 | global $wgPasswordAttemptThrottle; |
393 | 393 | |
394 | | - $throttleCount=0; |
395 | | - if ( is_array($wgPasswordAttemptThrottle) ) { |
| 394 | + $throttleCount = 0; |
| 395 | + if ( is_array( $wgPasswordAttemptThrottle ) ) { |
396 | 396 | $throttleKey = wfMemcKey( 'password-throttle', wfGetIP(), md5( $this->mName ) ); |
397 | 397 | $count = $wgPasswordAttemptThrottle['count']; |
398 | 398 | $period = $wgPasswordAttemptThrottle['seconds']; |
399 | 399 | |
400 | 400 | global $wgMemc; |
401 | | - $throttleCount = $wgMemc->get($throttleKey); |
| 401 | + $throttleCount = $wgMemc->get( $throttleKey ); |
402 | 402 | if ( !$throttleCount ) { |
403 | 403 | $wgMemc->add( $throttleKey, 1, $period ); // start counter |
404 | 404 | } else if ( $throttleCount < $count ) { |
— | — | @@ -872,7 +872,7 @@ |
873 | 873 | |
874 | 874 | # Don't show a "create account" link if the user can't |
875 | 875 | if( $this->showCreateOrLoginLink( $wgUser ) ) |
876 | | - $template->set( 'link', wfMsgHtml( $linkmsg, $link ) ); |
| 876 | + $template->set( 'link', wfMsgWikiHtml( $linkmsg, $link ) ); |
877 | 877 | else |
878 | 878 | $template->set( 'link', '' ); |
879 | 879 | |