Jeroen De Dauw has submitted this change and it was merged.

Change subject: Put version constant definition above composer autoload 
inclusion to avoid double loading
......................................................................


Put version constant definition above composer autoload inclusion to avoid 
double loading

Change-Id: I2cffc237ae8144e931656e4bfb544a07b735a5a3
---
M ParamProcessor.php
1 file changed, 3 insertions(+), 3 deletions(-)

Approvals:
  Jeroen De Dauw: Verified; Looks good to me, approved



diff --git a/ParamProcessor.php b/ParamProcessor.php
index 5317177..7f55df7 100644
--- a/ParamProcessor.php
+++ b/ParamProcessor.php
@@ -26,6 +26,9 @@
        return;
 }
 
+define( 'ParamProcessor_VERSION', '1.0 beta' );
+define( 'Validator_VERSION', ParamProcessor_VERSION ); // @deprecated since 1.0
+
 if ( isset( $wgVersion ) && version_compare( $wgVersion, '1.16c', '<' ) ) {
        die( '<b>Error:</b> This version of Validator requires MediaWiki 1.16 
or above.' );
 }
@@ -59,9 +62,6 @@
 
 unset( $dependencies );
 
-
-define( 'ParamProcessor_VERSION', '1.0 beta' );
-define( 'Validator_VERSION', ParamProcessor_VERSION ); // @deprecated since 1.0
 
 // Register the internationalization file.
 $wgExtensionMessagesFiles['Validator'] = __DIR__ . '/Validator.i18n.php';

-- 
To view, visit https://gerrit.wikimedia.org/r/67618
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I2cffc237ae8144e931656e4bfb544a07b735a5a3
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Validator
Gerrit-Branch: master
Gerrit-Owner: Jeroen De Dauw <[email protected]>
Gerrit-Reviewer: Jeroen De Dauw <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to