jenkins-bot has submitted this change and it was merged.
Change subject: Re-add $evilDataValueMap global, still used in DataModel 0.8.2
......................................................................
Re-add $evilDataValueMap global, still used in DataModel 0.8.2
Bug: 69542
Change-Id: I4cfeb1206f3007b00c57952c19d9c76ea6171fd6
---
M lib/WikibaseLib.php
1 file changed, 16 insertions(+), 0 deletions(-)
Approvals:
Bene: Looks good to me, approved
jenkins-bot: Verified
diff --git a/lib/WikibaseLib.php b/lib/WikibaseLib.php
index afe7ad9..e969d61 100644
--- a/lib/WikibaseLib.php
+++ b/lib/WikibaseLib.php
@@ -52,6 +52,22 @@
include_once( __DIR__ . '/../vendor/autoload.php' );
}
+// TODO: Needed for deserializing Snaks in DataModel 0.x. Remove with
DataModel 1.x!
+if( !array_key_exists( 'evilDataValueMap', $GLOBALS ) ) {
+ $GLOBALS['evilDataValueMap'] = array();
+}
+$GLOBALS['evilDataValueMap'] = array_merge(
+ $GLOBALS['evilDataValueMap'],
+ array(
+ 'globecoordinate' => 'DataValues\GlobeCoordinateValue',
+ 'monolingualtext' => 'DataValues\MonolingualTextValue',
+ 'multilingualtext' => 'DataValues\MultilingualTextValue',
+ 'quantity' => 'DataValues\QuantityValue',
+ 'time' => 'DataValues\TimeValue',
+ 'wikibase-entityid' =>
'Wikibase\DataModel\Entity\EntityIdValue',
+ )
+);
+
call_user_func( function() {
global $wgExtensionCredits, $wgJobClasses, $wgHooks,
$wgResourceModules, $wgMessagesDirs;
--
To view, visit https://gerrit.wikimedia.org/r/154260
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I4cfeb1206f3007b00c57952c19d9c76ea6171fd6
Gerrit-PatchSet: 5
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Aude <[email protected]>
Gerrit-Reviewer: Bene <[email protected]>
Gerrit-Reviewer: Thiemo Mättig (WMDE) <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits