r84404 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r84403‎ | r84404 | r84405 >
Date:17:42, 20 March 2011
Author:jeroendedauw
Status:deferred
Tags:
Comment:
fix in registerering OpenLayers stuff
Modified paths:
  • /trunk/extensions/Maps/includes/services/OpenLayers/OpenLayers.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Maps/includes/services/OpenLayers/OpenLayers.php
@@ -43,11 +43,16 @@
4444 $wgAutoloadClasses['MapsOpenLayers'] = dirname( __FILE__ ) . '/Maps_OpenLayers.php';
4545 $wgAutoloadClasses['MapsParamOLLayers'] = dirname( __FILE__ ) . '/Maps_ParamOLLayers.php';
4646
47 -MapsMappingServices::registerService(
48 - 'openlayers',
49 - 'MapsOpenLayers',
50 - array(
51 - 'display_point' => 'MapsBasePointMap',
52 - 'display_map' => 'MapsBaseMap'
53 - )
54 -);
 47+$wgHooks['MappingServiceLoad'][] = 'efMapsInitOpenLayers';
 48+function efMapsInitOpenLayers() {
 49+ MapsMappingServices::registerService(
 50+ 'openlayers',
 51+ 'MapsOpenLayers',
 52+ array(
 53+ 'display_point' => 'MapsBasePointMap',
 54+ 'display_map' => 'MapsBaseMap'
 55+ )
 56+ );
 57+
 58+ return true;
 59+}
\ No newline at end of file

Follow-up revisions

RevisionCommit summaryAuthorDate
r84405follow up to r84404jeroendedauw17:43, 20 March 2011

Status & tagging log