Change the hook case per CR r95152
authorRaimond Spekking <raymond@users.mediawiki.org>
Wed, 19 Oct 2011 17:15:05 +0000 (17:15 +0000)
committerRaimond Spekking <raymond@users.mediawiki.org>
Wed, 19 Oct 2011 17:15:05 +0000 (17:15 +0000)
docs/hooks.txt
includes/specials/SpecialUserlogin.php

index d33bd7a..7a36381 100644 (file)
@@ -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
index 9648ad8..3f1ecf8 100644 (file)
@@ -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() ) ) {