Jeroen De Dauw has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/74066


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(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase 
refs/changes/66/74066/1

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: newchange
Gerrit-Change-Id: I4c60a10ec0094bb2a24e5c04185306ad51a28a64
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Jeroen De Dauw <[email protected]>

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

Reply via email to