Index: trunk/extensions/MinimumNameLength/MinimumNameLength.php |
— | — | @@ -28,17 +28,9 @@ |
29 | 29 | ); |
30 | 30 | |
31 | 31 | $wgExtensionMessagesFiles['MinimumNameLength'] = dirname(__FILE__) . '/MinimumNameLength.i18n.php'; |
32 | | -$wgExtensionFunctions[] = 'efMinimumNameLengthSetup'; |
| 32 | +$wgHooks['AbortNewAccount'][] = 'efMinimumNameLength'; |
33 | 33 | |
34 | 34 | /** |
35 | | - * Extension setup function |
36 | | - */ |
37 | | -function efMinimumNameLengthSetup() { |
38 | | - global $wgHooks; |
39 | | - $wgHooks['AbortNewAccount'][] = 'efMinimumNameLength'; |
40 | | -} |
41 | | - |
42 | | -/** |
43 | 35 | * Hooks account creation and checks the |
44 | 36 | * username length, cancelling with an error |
45 | 37 | * if the username is too short |