| Index: trunk/extensions/Maps/includes/services/OpenLayers/OpenLayers.php |
| — | — | @@ -43,11 +43,16 @@ |
| 44 | 44 | $wgAutoloadClasses['MapsOpenLayers'] = dirname( __FILE__ ) . '/Maps_OpenLayers.php'; |
| 45 | 45 | $wgAutoloadClasses['MapsParamOLLayers'] = dirname( __FILE__ ) . '/Maps_ParamOLLayers.php'; |
| 46 | 46 | |
| 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 |