Index: trunk/phase3/docs/hooks.txt |
— | — | @@ -643,6 +643,10 @@ |
644 | 644 | 'CategoryPageView': before viewing a categorypage in CategoryPage::view |
645 | 645 | $catpage: CategoryPage instance |
646 | 646 | |
| 647 | +'ChangeAccountCreationThrottle': Called to change $wgAccountCreationThrottle |
| 648 | +$ip: The ip address of the user |
| 649 | +&$wgAccountCreationThrottle: The global variable $wgAccountCreationThrottle to be changed |
| 650 | + |
647 | 651 | 'ChangesListInsertArticleLink': Override or augment link to article in RC list. |
648 | 652 | &$changesList: ChangesList instance. |
649 | 653 | &$articlelink: HTML of link to article (already filled-in). |
Index: trunk/phase3/includes/specials/SpecialUserlogin.php |
— | — | @@ -377,6 +377,9 @@ |
378 | 378 | return false; |
379 | 379 | } |
380 | 380 | |
| 381 | + // Hook point to change $wgAccountCreationThrottle |
| 382 | + wfRunHooks( 'ChangeAccountCreationThrottle', array( $ip, &$wgAccountCreationThrottle ) ); |
| 383 | + |
381 | 384 | if ( $wgAccountCreationThrottle && $wgUser->isPingLimitable() ) { |
382 | 385 | $key = wfMemcKey( 'acctcreate', 'ip', $ip ); |
383 | 386 | $value = $wgMemc->get( $key ); |