Index: trunk/extensions/ConfirmAccount/ConfirmAccount.setup.php |
— | — | @@ -9,12 +9,9 @@ |
10 | 10 | * |
11 | 11 | * @param $classes Array $classes |
12 | 12 | * @param $messagesFiles Array $messagesFiles |
13 | | - * @param $aliasesFiles Array $aliasesFiles |
14 | 13 | * @return void |
15 | 14 | */ |
16 | | - public static function defineSourcePaths( |
17 | | - array &$classes, array &$messagesFiles, array &$aliasesFiles |
18 | | - ) { |
| 15 | + public static function defineSourcePaths( array &$classes, array &$messagesFiles ) { |
19 | 16 | $dir = dirname( __FILE__ ); |
20 | 17 | |
21 | 18 | # Basic directory layout |
— | — | @@ -28,7 +25,7 @@ |
29 | 26 | |
30 | 27 | # Main i18n file and special page alias file |
31 | 28 | $messagesFiles['ConfirmAccount'] = "$langDir/ConfirmAccount.i18n.php"; |
32 | | - $aliasesFiles['ConfirmAccount'] = "$langDir/ConfirmAccount.alias.php"; |
| 29 | + $messagesFiles['ConfirmAccountAliases'] = "$langDir/ConfirmAccount.alias.php"; |
33 | 30 | |
34 | 31 | # UI setup class |
35 | 32 | $classes['ConfirmAccountUISetup'] = "$frontendDir/ConfirmAccountUI.setup.php"; |
Index: trunk/extensions/ConfirmAccount/ConfirmAccount.php |
— | — | @@ -36,11 +36,7 @@ |
37 | 37 | |
38 | 38 | # Define were PHP files and i18n files are located |
39 | 39 | require( dirname( __FILE__ ) . '/ConfirmAccount.setup.php' ); |
40 | | -ConfirmAccountSetup::defineSourcePaths( |
41 | | - $wgAutoloadClasses, |
42 | | - $wgExtensionMessagesFiles, |
43 | | - $wgExtensionAliasesFiles |
44 | | -); |
| 40 | +ConfirmAccountSetup::defineSourcePaths( $wgAutoloadClasses, $wgExtensionMessagesFiles ); |
45 | 41 | |
46 | 42 | # Define JS/CSS modules and file locations |
47 | 43 | ConfirmAccountUISetup::defineResourceModules( $wgResourceModules ); |
— | — | @@ -79,7 +75,7 @@ |
80 | 76 | # This extension needs email enabled! |
81 | 77 | # Otherwise users can't get their passwords... |
82 | 78 | if ( !$wgEnableEmail ) { |
83 | | - echo "ConfirmAccount extension requires \$wgEnableEmail set to true \n"; |
| 79 | + echo "ConfirmAccount extension requires \$wgEnableEmail set to true.\n"; |
84 | 80 | exit( 1 ) ; |
85 | 81 | } |
86 | 82 | } |