r84405 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r84404‎ | r84405 | r84406 >
Date:17:43, 20 March 2011
Author:jeroendedauw
Status:deferred (Comments)
Tags:
Comment:
follow up to r84404
Modified paths:
  • /branches/Maps0.7.x/includes/services/OpenLayers/OpenLayers.php (modified) (history)

Diff [purge]

Index: branches/Maps0.7.x/includes/services/OpenLayers/OpenLayers.php
@@ -26,11 +26,16 @@
2727 $wgAutoloadClasses['MapsOpenLayersDispPoint'] = dirname( __FILE__ ) . '/Maps_OpenLayersDispPoint.php';
2828 $wgAutoloadClasses['MapsParamOLLayers'] = dirname( __FILE__ ) . '/Maps_ParamOLLayers.php';
2929
30 -MapsMappingServices::registerService(
31 - 'openlayers',
32 - 'MapsOpenLayers',
33 - array(
34 - 'display_point' => 'MapsOpenLayersDispPoint',
35 - 'display_map' => 'MapsOpenLayersDispMap'
36 - )
37 -);
 30+$wgHooks['MappingServiceLoad'][] = 'efMapsInitOpenLayers';
 31+function efMapsInitOpenLayers() {
 32+ MapsMappingServices::registerService(
 33+ 'openlayers',
 34+ 'MapsOpenLayers',
 35+ array(
 36+ 'display_point' => 'MapsOpenLayersDispPoint',
 37+ 'display_map' => 'MapsOpenLayersDispMap'
 38+ )
 39+ );
 40+
 41+ return true;
 42+}

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r84404fix in registerering OpenLayers stuffjeroendedauw17:42, 20 March 2011

Comments

#Comment by Siebrand (talk | contribs)   17:54, 20 March 2011

Best use MFT in your commit summary, because it is not a follow-up, but a Merge From Trunk.

#Comment by Jeroen De Dauw (talk | contribs)   17:59, 20 March 2011

Ok, will do

Status & tagging log