Jeroen De Dauw has uploaded a new change for review. https://gerrit.wikimedia.org/r/67072
Change subject: Move globecoordinate registration to correct location ...................................................................... Move globecoordinate registration to correct location Change-Id: I02eee189a3999501b4f583c027b83eabd05d851a --- M ValueFormatters/ValueFormatters.mw.php M ValueFormatters/ValueFormatters.php 2 files changed, 3 insertions(+), 7 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/DataValues refs/changes/72/67072/1 diff --git a/ValueFormatters/ValueFormatters.mw.php b/ValueFormatters/ValueFormatters.mw.php index d607a9b..5c0d678 100644 --- a/ValueFormatters/ValueFormatters.mw.php +++ b/ValueFormatters/ValueFormatters.mw.php @@ -44,10 +44,6 @@ $wgExtensionMessagesFiles['ValueFormatters'] = __DIR__ . '/ValueFormatters.i18n.php'; -$wgValueFormatters = array( - 'globecoordinate' => 'ValueFormatters\GeoCoordinateFormatter' -); - foreach (include(__DIR__ . '/ValueFormatters.classes.php') as $class => $file ) { if ( !array_key_exists( $class, $GLOBALS['wgAutoloadLocalClasses'] ) ) { $wgAutoloadClasses[$class] = __DIR__ . '/' . $file; diff --git a/ValueFormatters/ValueFormatters.php b/ValueFormatters/ValueFormatters.php index 9393962..f920121 100644 --- a/ValueFormatters/ValueFormatters.php +++ b/ValueFormatters/ValueFormatters.php @@ -49,9 +49,9 @@ global $wgValueFormatters; -$wgValueFormatters = array(); - -$wgValueFormatters['geocoordinate'] = 'ValueFormatters\GeoCoordinateFormatter'; +$wgValueFormatters = array( + 'globecoordinate' => 'ValueFormatters\GeoCoordinateFormatter' +); if ( defined( 'MEDIAWIKI' ) ) { include __DIR__ . '/ValueFormatters.mw.php'; -- To view, visit https://gerrit.wikimedia.org/r/67072 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I02eee189a3999501b4f583c027b83eabd05d851a Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/DataValues Gerrit-Branch: master Gerrit-Owner: Jeroen De Dauw <jeroended...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits