From 5e555ba677e2734834518621c91c03382cc5ea15 Mon Sep 17 00:00:00 2001 From: Raimond Spekking Date: Wed, 19 Oct 2011 17:15:05 +0000 Subject: [PATCH] Change the hook case per CR r95152 --- docs/hooks.txt | 2 +- includes/specials/SpecialUserlogin.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/hooks.txt b/docs/hooks.txt index d33bd7ad89..7a363814dd 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -852,7 +852,7 @@ $user: The user who is trying to email another user. $editToken: The user's edit token. &$hookErr: Out-param for the error. Passed as the parameters to OutputPage::showErrorPage. -'exemptFromAccountCreationThrottle': Exemption from the account creation throttle +'ExemptFromAccountCreationThrottle': Exemption from the account creation throttle $ip: The ip address of the user 'ExtensionTypes': called when generating the extensions credits, use this to change the tables headers diff --git a/includes/specials/SpecialUserlogin.php b/includes/specials/SpecialUserlogin.php index 9648ad8c89..3f1ecf8c57 100644 --- a/includes/specials/SpecialUserlogin.php +++ b/includes/specials/SpecialUserlogin.php @@ -388,7 +388,7 @@ class LoginForm extends SpecialPage { } // Hook point to check for exempt from account creation throttle - if ( !wfRunHooks( 'exemptFromAccountCreationThrottle', array( $ip ) ) ) { + if ( !wfRunHooks( 'ExemptFromAccountCreationThrottle', array( $ip ) ) ) { wfDebug( "LoginForm::exemptFromAccountCreationThrottle: a hook allowed account creation w/o throttle\n" ); } else { if ( ( $wgAccountCreationThrottle && $currentUser->isPingLimitable() ) ) { -- 2.20.1