Aude has uploaded a new change for review.
https://gerrit.wikimedia.org/r/154259
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, 37 insertions(+), 20 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase
refs/changes/59/154259/1
diff --git a/lib/WikibaseLib.php b/lib/WikibaseLib.php
index afe7ad9..8eec236 100644
--- a/lib/WikibaseLib.php
+++ b/lib/WikibaseLib.php
@@ -1,25 +1,25 @@
<?php
/**
- * Welcome to the inside of Wikibase, <>
- * the software that powers /\ /\
- * Wikidata and other <{ }> <{ }>
- * structured data websites. <> /\ \/ /\ \/ /\ <>
- * // \\ // \\ // \\
- * It is Free Software. <{{ }}><{{ }}><{{ }}>
- * /\ \\ // \\ // \\ // /\
- * <{ }> >< \/ >< <{ }>
- * \/ // \\ // \\ \/
- * <> <{{ }}>
+--------------------------+
- * /\ \\ // |
|
- * <{ }> >< /| W I K I B A S E
|
- * \/ // \\ // |
|
- * We are <{{ }}><{{
+--------------------------+
- * looking for people \\ // \\ // \\ //
- * like you to join us in <> \/ /\ \/ /\ \/ <>
- * developing it further. Find <{ }> <{ }>
- * out more at http://wikiba.se \/ \/
- * and join the open data revolution. <>
+ * Welcome to the inside of Wikibase, <>
+ * the software that powers /\ /\
+ * Wikidata and other <{ }> <{ }>
+ * structured data websites. <> /\ \/ /\ \/ /\ <>
+ * // \\
// \\ // \\
+ * It is Free Software. <{{ }}><{{ }}><{{ }}>
+ * /\ \\ //
\\ // \\ // /\
+ * <{ }> ><
\/ >< <{ }>
+ * \/ // \\
// \\ \/
+ * <> <{{ }}>
+--------------------------+
+ * /\ \\ //
| |
+ * <{ }> ><
/| W I K I B A S E |
+ * \/ // \\
// | |
+ * We are <{{ }}><{{
+--------------------------+
+ * looking for people \\ // \\ // \\ //
+ * like you to join us in <> \/ /\ \/ /\ \/ <>
+ * developing it further. Find <{ }> <{ }>
+ * out more at http://wikiba.se \/ \/
+ * and join the open data revolution. <>
*/
/**
@@ -52,6 +52,23 @@
include_once( __DIR__ . '/../vendor/autoload.php' );
}
+// needed for deserializing Snaks in DataModel 0.8.2
+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;
@@ -69,7 +86,7 @@
define( 'SUMMARY_MAX_LENGTH', 250 );
// i18n
- $wgMessagesDirs['WikibaseLib'] = __DIR__ . '/i18n';
+ $wgMessagesDirs['WikibaseLib'] = __DIR__ . '/i18n';
$wgJobClasses['ChangeNotification'] = 'Wikibase\ChangeNotificationJob';
--
To view, visit https://gerrit.wikimedia.org/r/154259
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I4cfeb1206f3007b00c57952c19d9c76ea6171fd6
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: mw1.24-wmf17
Gerrit-Owner: Aude <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits