r100241 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r100240‎ | r100241 | r100242 >
Date:17:15, 19 October 2011
Author:raymond
Status:ok
Tags:
Comment:
Change the hook case per CR r95152
Modified paths:
  • /trunk/phase3/docs/hooks.txt (modified) (history)
  • /trunk/phase3/includes/specials/SpecialUserlogin.php (modified) (history)

Diff [purge]

Index: trunk/phase3/docs/hooks.txt
@@ -852,7 +852,7 @@
853853 $editToken: The user's edit token.
854854 &$hookErr: Out-param for the error. Passed as the parameters to OutputPage::showErrorPage.
855855
856 -'exemptFromAccountCreationThrottle': Exemption from the account creation throttle
 856+'ExemptFromAccountCreationThrottle': Exemption from the account creation throttle
857857 $ip: The ip address of the user
858858
859859 'ExtensionTypes': called when generating the extensions credits, use this to change the tables headers
Index: trunk/phase3/includes/specials/SpecialUserlogin.php
@@ -388,7 +388,7 @@
389389 }
390390
391391 // Hook point to check for exempt from account creation throttle
392 - if ( !wfRunHooks( 'exemptFromAccountCreationThrottle', array( $ip ) ) ) {
 392+ if ( !wfRunHooks( 'ExemptFromAccountCreationThrottle', array( $ip ) ) ) {
393393 wfDebug( "LoginForm::exemptFromAccountCreationThrottle: a hook allowed account creation w/o throttle\n" );
394394 } else {
395395 if ( ( $wgAccountCreationThrottle && $currentUser->isPingLimitable() ) ) {

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r95152New hook point to exempt an IP address from the account creation throttle. Re...raymond16:38, 21 August 2011

Status & tagging log