From: Raimond Spekking Date: Wed, 19 Oct 2011 17:15:05 +0000 (+0000) Subject: Change the hook case per CR r95152 X-Git-Tag: 1.31.0-rc.0~27005 X-Git-Url: https://git.heureux-cyclage.org/?a=commitdiff_plain;h=5e555ba677e2734834518621c91c03382cc5ea15;p=lhc%2Fweb%2Fwiklou.git Change the hook case per CR r95152 --- 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() ) ) {