Paladox has uploaded a new change for review.
https://gerrit.wikimedia.org/r/264139
Change subject: Test:
......................................................................
Test:
Change-Id: I80a88ededdbd9f7a44ed120db9b289291aba22b3
---
M SemanticFormsInputs.php
1 file changed, 11 insertions(+), 6 deletions(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SemanticFormsInputs
refs/changes/39/264139/1
diff --git a/SemanticFormsInputs.php b/SemanticFormsInputs.php
index d64c4b5..c2697e7 100644
--- a/SemanticFormsInputs.php
+++ b/SemanticFormsInputs.php
@@ -26,13 +26,18 @@
die( '<b>Error:</b> This version of <a
href="https://www.mediawiki.org/wiki/Extension:Semantic_Forms_Inputs">Semantic
Forms Inputs</a> is only compatible with MediaWiki 1.17 or above. You need to
upgrade MediaWiki first.' );
}
-if ( !defined( 'SF_VERSION' ) ) {
- die( '<b>Error:</b> <a
href="https://www.mediawiki.org/wiki/Extension:Semantic_Forms_Inputs">Semantic
Forms Inputs</a> is a Semantic Forms extension. You need to install <a
href="https://www.mediawiki.org/wiki/Extension:Semantic_Forms">Semantic
Forms</a> first.' );
-}
-if ( version_compare( SF_VERSION, '2.4.2', 'lt' ) ) {
- die( '<b>Error:</b> This version of <a
href="https://www.mediawiki.org/wiki/Extension:Semantic_Forms_Inputs">Semantic
Forms Inputs</a> is only compatible with Semantic Forms 2.4.1 or above. You
need to upgrade <a
href="https://www.mediawiki.org/wiki/Extension:Semantic_Forms">Semantic
Forms</a> first.' );
-}
+call_user_func(
+ function () {
+ if ( !defined( 'SF_VERSION' ) ) {
+ die( '<b>Error:</b> <a
href="https://www.mediawiki.org/wiki/Extension:Semantic_Forms_Inputs">Semantic
Forms Inputs</a> is a Semantic Forms extension. You need to install <a
href="https://www.mediawiki.org/wiki/Extension:Semantic_Forms">Semantic
Forms</a> first.' );
+ }
+
+ if ( version_compare( 'SF_VERSION', '2.4.2', 'lt' ) ) {
+ die( '<b>Error:</b> This version of <a
href="https://www.mediawiki.org/wiki/Extension:Semantic_Forms_Inputs">Semantic
Forms Inputs</a> is only compatible with Semantic Forms 2.4.1 or above. You
need to upgrade <a
href="https://www.mediawiki.org/wiki/Extension:Semantic_Forms">Semantic
Forms</a> first.' );
+ }
+ }
+};
define( 'SFI_VERSION', '0.9.0 alpha' );
--
To view, visit https://gerrit.wikimedia.org/r/264139
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I80a88ededdbd9f7a44ed120db9b289291aba22b3
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SemanticFormsInputs
Gerrit-Branch: master
Gerrit-Owner: Paladox <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits