Daniel Werner has submitted this change and it was merged.

Change subject: Update magical loading code so it keeps working after 
DataValues split
......................................................................


Update magical loading code so it keeps working after DataValues split

Change-Id: I4c60a10ec0094bb2a24e5c04185306ad51a28a64
---
M lib/WikibaseLib.php
1 file changed, 28 insertions(+), 0 deletions(-)

Approvals:
  Daniel Werner: Looks good to me, approved
  Daniel Kinzler: Looks good to me, but someone else must approve
  jenkins-bot: Verified



diff --git a/lib/WikibaseLib.php b/lib/WikibaseLib.php
index 5a9fc13..62ab551 100644
--- a/lib/WikibaseLib.php
+++ b/lib/WikibaseLib.php
@@ -64,10 +64,38 @@
        @include_once( __DIR__ . '/../../DataValues/DataValues.php' );
 }
 
+// Include the ValueParsers extension if that hasn't been done yet.
+if ( !defined( 'ValueParsers_VERSION' ) ) {
+       @include_once( __DIR__ . '/../../ValueParsers/ValueParsers.php' );
+}
+
+// Include the ValueFormatters extension if that hasn't been done yet.
+if ( !defined( 'ValueFormatters_VERSION' ) ) {
+       @include_once( __DIR__ . '/../../ValueFormatters/ValueFormatters.php' );
+}
+
+// Include the ValueValidators extension if that hasn't been done yet.
+if ( !defined( 'ValueValidators_VERSION' ) ) {
+       @include_once( __DIR__ . '/../../ValueValidators/ValueValidators.php' );
+}
+
+// Include the ValueView extension if that hasn't been done yet.
+if ( !defined( 'ValueView_VERSION' ) ) {
+       @include_once( __DIR__ . '/../../ValueView/ValueView.php' );
+}
+
+// Include the DataTypes extension if that hasn't been done yet.
+if ( !defined( 'DataTypes_VERSION' ) ) {
+       @include_once( __DIR__ . '/../../DataTypes/DataTypes.php' );
+}
+
 $dependencies = array(
+       'WIKIBASE_DATAMODEL_VERSION' => 'Wikibase DataModel',
        'Diff_VERSION' => 'Diff',
        'DataValues_VERSION' => 'DataValues',
        'ValueParsers_VERSION' => 'ValueParsers',
+       'ValueFormatters_VERSION' => 'ValueFormatters',
+       'ValueValidators_VERSION' => 'ValueValidators',
        'DataTypes_VERSION' => 'DataTypes',
        'ValueView_VERSION' => 'ValueView',
 );

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I4c60a10ec0094bb2a24e5c04185306ad51a28a64
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Jeroen De Dauw <[email protected]>
Gerrit-Reviewer: Aude <[email protected]>
Gerrit-Reviewer: Daniel Kinzler <[email protected]>
Gerrit-Reviewer: Daniel Werner <[email protected]>
Gerrit-Reviewer: Denny Vrandecic <[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

Reply via email to