Tobias Gritschacher has submitted this change and it was merged.
Change subject: require and include Ask extension only if in experimental mode
......................................................................
require and include Ask extension only if in experimental mode
Change-Id: I7bcbb9f959bc427d6f1ab1f397e3771e97c71d2c
---
M lib/WikibaseLib.php
1 file changed, 5 insertions(+), 3 deletions(-)
Approvals:
Tobias Gritschacher: Verified; Looks good to me, approved
jenkins-bot: Checked
diff --git a/lib/WikibaseLib.php b/lib/WikibaseLib.php
index 14b5208..8ef3798 100644
--- a/lib/WikibaseLib.php
+++ b/lib/WikibaseLib.php
@@ -50,9 +50,11 @@
@include_once( __DIR__ . '/../../DataValues/DataValues.php' );
}
-// Include the Ask extension if that hasn't been done yet, since it's required
for WikibaseLib to work.
-if ( !defined( 'Ask_VERSION' ) ) {
- @include_once( __DIR__ . '/../../Ask/Ask.php' );
+if ( defined( 'WB_EXPERIMENTAL_FEATURES' ) && WB_EXPERIMENTAL_FEATURES ) {
+ // Include the Ask extension if that hasn't been done yet, since it's
required for WikibaseLib to work.
+ if ( !defined( 'Ask_VERSION' ) ) {
+ @include_once( __DIR__ . '/../../Ask/Ask.php' );
+ }
}
$dependencies = array(
--
To view, visit https://gerrit.wikimedia.org/r/54979
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I7bcbb9f959bc427d6f1ab1f397e3771e97c71d2c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Aude <[email protected]>
Gerrit-Reviewer: Daniel Kinzler <[email protected]>
Gerrit-Reviewer: Jeroen De Dauw <[email protected]>
Gerrit-Reviewer: Tobias Gritschacher <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits