r106053 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r106052‎ | r106053 | r106054 >
Date:18:27, 13 December 2011
Author:jeroendedauw
Status:ok
Tags:
Comment:
address bug 32969
Modified paths:
  • /trunk/extensions/Validator/Validator.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Validator/Validator.php
@@ -25,8 +25,16 @@
2626 die( 'Not an entry point.' );
2727 }
2828
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+}
3032
 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+
3139 // Register the internationalization file.
3240 $wgExtensionMessagesFiles['Validator'] = dirname( __FILE__ ) . '/Validator.i18n.php';
3341

Status & tagging log