Index: trunk/extensions/Validator/Validator.php |
— | — | @@ -24,7 +24,7 @@ |
25 | 25 | die( 'Not an entry point.' ); |
26 | 26 | } |
27 | 27 | |
28 | | -define( 'Validator_VERSION', '0.2.2 a1' ); |
| 28 | +define( 'Validator_VERSION', '0.2.2 a2' ); |
29 | 29 | |
30 | 30 | // Constants indicating the strictness of the parameter validation. |
31 | 31 | define( 'Validator_ERRORS_NONE', 0 ); |
— | — | @@ -33,22 +33,22 @@ |
34 | 34 | define( 'Validator_ERRORS_SHOW', 3 ); |
35 | 35 | define( 'Validator_ERRORS_STRICT', 4 ); |
36 | 36 | |
37 | | -$egValidatorIP = $IP . '/extensions/Validator'; |
| 37 | +$egValidatorDir = dirname( __FILE__ ) . '/'; |
38 | 38 | |
39 | 39 | // Include the settings file. |
40 | | -require_once( $egValidatorIP . '/Validator_Settings.php' ); |
| 40 | +require_once( $egValidatorDir . 'Validator_Settings.php' ); |
41 | 41 | |
42 | 42 | // Put the initalization function into the MW extension hook. |
43 | 43 | $wgExtensionFunctions[] = 'efValidatorSetup'; |
44 | 44 | |
45 | 45 | // Register the internationalization file. |
46 | | -$wgExtensionMessagesFiles['Validator'] = $egValidatorIP . '/Validator.i18n.php'; |
| 46 | +$wgExtensionMessagesFiles['Validator'] = $egValidatorDir . 'Validator.i18n.php'; |
47 | 47 | |
48 | 48 | // Autoload the general classes |
49 | | -$wgAutoloadClasses['Validator'] = $egValidatorIP . '/Validator.class.php'; |
50 | | -$wgAutoloadClasses['ValidatorFunctions'] = $egValidatorIP . '/Validator_Functions.php'; |
51 | | -$wgAutoloadClasses['ValidatorFormats'] = $egValidatorIP . '/Validator_Formats.php'; |
52 | | -$wgAutoloadClasses['ValidatorManager'] = $egValidatorIP . '/Validator_Manager.php'; |
| 49 | +$wgAutoloadClasses['Validator'] = $egValidatorDir . 'Validator.class.php'; |
| 50 | +$wgAutoloadClasses['ValidatorFunctions'] = $egValidatorDir . 'Validator_Functions.php'; |
| 51 | +$wgAutoloadClasses['ValidatorFormats'] = $egValidatorDir . 'Validator_Formats.php'; |
| 52 | +$wgAutoloadClasses['ValidatorManager'] = $egValidatorDir . 'Validator_Manager.php'; |
53 | 53 | |
54 | 54 | /** |
55 | 55 | * Initialization function for the Validator extension. |