Index: trunk/extensions/UsabilityInitiative/UsabilityInitiative.php |
— | — | @@ -22,19 +22,6 @@ |
23 | 23 | // Set this to true to simply override the stock toolbar for everyone |
24 | 24 | $wgUsabilityInitiativeCoesxistWithMvEmbed = false; |
25 | 25 | |
26 | | -// Configures which modules should be enabled |
27 | | -if ( |
28 | | - !isset( $wgUsabilityInitiativeModules ) || |
29 | | - !is_array( $wgUsabilityInitiativeModules ) |
30 | | -) { |
31 | | - $wgUsabilityInitiativeModules = array( |
32 | | - 'EditToolbar', |
33 | | - 'EditWarning', |
34 | | - 'PrefStats', |
35 | | - 'OptIn' |
36 | | - ); |
37 | | -} |
38 | | - |
39 | 26 | /* Setup */ |
40 | 27 | |
41 | 28 | // Sets Credits |
— | — | @@ -55,10 +42,11 @@ |
56 | 43 | $wgExtensionMessagesFiles['UsabilityInitiative'] = |
57 | 44 | dirname( __FILE__ ) . "/UsabilityInitiative.i18n.php"; |
58 | 45 | |
59 | | -// Includes modules |
60 | | -foreach ( $wgUsabilityInitiativeModules as $module ) { |
61 | | - require_once( dirname( __FILE__ ) . "/{$module}/{$module}.php" ); |
62 | | -} |
| 46 | +// Includes sub-extensions |
| 47 | +require_once( dirname( __FILE__ ) . "/EditToolbar/EditToolbar.php" ); |
| 48 | +require_once( dirname( __FILE__ ) . "/EditWarning/EditWarning.php" ); |
| 49 | +require_once( dirname( __FILE__ ) . "/PrefStats/PrefStats.php" ); |
| 50 | +require_once( dirname( __FILE__ ) . "/OptIn/OptIn.php" ); |
63 | 51 | |
64 | 52 | // Registers Hooks |
65 | 53 | $wgHooks['AjaxAddScript'][] = 'UsabilityInitiativeHooks::addJs'; |