Jeroen De Dauw has submitted this change and it was merged.

Change subject: Deprecate global variable
......................................................................


Deprecate global variable

Change-Id: I4dafa0aacfe81744ee9c0c03c8c5a6dba01b0691
---
M ValueFormatters/ValueFormatters.mw.php
1 file changed, 4 insertions(+), 1 deletion(-)

Approvals:
  Jeroen De Dauw: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/ValueFormatters/ValueFormatters.mw.php 
b/ValueFormatters/ValueFormatters.mw.php
index 8eba748..3fc8d05 100644
--- a/ValueFormatters/ValueFormatters.mw.php
+++ b/ValueFormatters/ValueFormatters.mw.php
@@ -16,7 +16,7 @@
        die( 'Not an entry point.' );
 }
 
-global $wgExtensionCredits, $wgExtensionMessagesFiles, $wgHooks;
+global $wgExtensionCredits, $wgExtensionMessagesFiles, $wgHooks, 
$wgValueFormatters;
 
 $wgExtensionCredits['datavalues'][] = array(
        'path' => __DIR__,
@@ -33,6 +33,9 @@
        require_once __DIR__ . '/tests/testLoader.php';
 }
 
+/**
+ * @deprecated
+ */
 $wgValueFormatters = array(
        \DataValues\GeoCoordinateValue::getType() => 
'ValueFormatters\GeoCoordinateFormatter',
        \DataValues\TimeValue::getType() => 'ValueFormatters\TimeFormatter',

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I4dafa0aacfe81744ee9c0c03c8c5a6dba01b0691
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/DataValues
Gerrit-Branch: master
Gerrit-Owner: Jeroen De Dauw <jeroended...@gmail.com>
Gerrit-Reviewer: Jeroen De Dauw <jeroended...@gmail.com>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to