r62349 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r62348‎ | r62349 | r62350 >
Date:01:46, 12 February 2010
Author:jeroendedauw
Status:deferred
Tags:
Comment:
Changes for 0.2.2.
* Changed $egValidatorIP into $egValidatorDir
Modified paths:
  • /trunk/extensions/Validator/Validator.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Validator/Validator.php
@@ -24,7 +24,7 @@
2525 die( 'Not an entry point.' );
2626 }
2727
28 -define( 'Validator_VERSION', '0.2.2 a1' );
 28+define( 'Validator_VERSION', '0.2.2 a2' );
2929
3030 // Constants indicating the strictness of the parameter validation.
3131 define( 'Validator_ERRORS_NONE', 0 );
@@ -33,22 +33,22 @@
3434 define( 'Validator_ERRORS_SHOW', 3 );
3535 define( 'Validator_ERRORS_STRICT', 4 );
3636
37 -$egValidatorIP = $IP . '/extensions/Validator';
 37+$egValidatorDir = dirname( __FILE__ ) . '/';
3838
3939 // Include the settings file.
40 -require_once( $egValidatorIP . '/Validator_Settings.php' );
 40+require_once( $egValidatorDir . 'Validator_Settings.php' );
4141
4242 // Put the initalization function into the MW extension hook.
4343 $wgExtensionFunctions[] = 'efValidatorSetup';
4444
4545 // Register the internationalization file.
46 -$wgExtensionMessagesFiles['Validator'] = $egValidatorIP . '/Validator.i18n.php';
 46+$wgExtensionMessagesFiles['Validator'] = $egValidatorDir . 'Validator.i18n.php';
4747
4848 // 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';
5353
5454 /**
5555 * Initialization function for the Validator extension.

Status & tagging log