Index: trunk/extensions/Validator/Validator.php |
— | — | @@ -25,8 +25,16 @@ |
26 | 26 | die( 'Not an entry point.' ); |
27 | 27 | } |
28 | 28 | |
29 | | -define( 'Validator_VERSION', '0.4.13' ); |
| 29 | +if ( version_compare( $wgVersion, '1.16c', '<' ) ) { |
| 30 | + die( '<b>Error:</b> This version of Validator requires MediaWiki 1.16 or above.' ); |
| 31 | +} |
30 | 32 | |
| 33 | +if ( defined( 'Validator_VERSION' ) ) { |
| 34 | + die( '<b>Error:</b> Tried to include Validator a second time. Please make sure you are including it before any extensions that make use of it.' ); |
| 35 | +} |
| 36 | + |
| 37 | +define( 'Validator_VERSION', '0.4.14 alpha' ); |
| 38 | + |
31 | 39 | // Register the internationalization file. |
32 | 40 | $wgExtensionMessagesFiles['Validator'] = dirname( __FILE__ ) . '/Validator.i18n.php'; |
33 | 41 | |