r53470 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r53469‎ | r53470 | r53471 >
Date:06:08, 19 July 2009
Author:simetrical
Status:ok
Tags:
Comment:
Allow wikitext to be used in nologin, etc.

These are the primary messages on Special:UserLogin, so it's reasonable
to permit formatting.
Modified paths:
  • /trunk/phase3/includes/specials/SpecialUserlogin.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialUserlogin.php
@@ -390,14 +390,14 @@
391391
392392 global $wgPasswordAttemptThrottle;
393393
394 - $throttleCount=0;
395 - if ( is_array($wgPasswordAttemptThrottle) ) {
 394+ $throttleCount = 0;
 395+ if ( is_array( $wgPasswordAttemptThrottle ) ) {
396396 $throttleKey = wfMemcKey( 'password-throttle', wfGetIP(), md5( $this->mName ) );
397397 $count = $wgPasswordAttemptThrottle['count'];
398398 $period = $wgPasswordAttemptThrottle['seconds'];
399399
400400 global $wgMemc;
401 - $throttleCount = $wgMemc->get($throttleKey);
 401+ $throttleCount = $wgMemc->get( $throttleKey );
402402 if ( !$throttleCount ) {
403403 $wgMemc->add( $throttleKey, 1, $period ); // start counter
404404 } else if ( $throttleCount < $count ) {
@@ -872,7 +872,7 @@
873873
874874 # Don't show a "create account" link if the user can't
875875 if( $this->showCreateOrLoginLink( $wgUser ) )
876 - $template->set( 'link', wfMsgHtml( $linkmsg, $link ) );
 876+ $template->set( 'link', wfMsgWikiHtml( $linkmsg, $link ) );
877877 else
878878 $template->set( 'link', '' );
879879

Status & tagging log