Skip to content

Commit

Permalink
Fixed JS paths for SM files
Browse files Browse the repository at this point in the history
Broken in the last patch release due to moving of SM init code and use of __DIR__
  • Loading branch information
JeroenDeDauw committed Dec 6, 2016
1 parent d644dd7 commit c67414e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/SemanticMaps.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ private function registerResourceModules() {
];

$this->mwGlobals['wgResourceModules']['ext.sm.common'] = $moduleTemplate + [
'localBasePath' => __DIR__ . '/SemanticMaps/src',
'localBasePath' => __DIR__ . '/../SemanticMaps/src',
'remoteExtPath' => 'Maps/SemanticMaps/src',
'scripts' => [
'ext.sm.common.js'
Expand All @@ -65,7 +65,7 @@ private function registerResourceModules() {

private function registerGoogleMaps() {
$this->mwGlobals['wgResourceModules']['ext.sm.googlemaps3ajax'] = [
'localBasePath' => __DIR__ . '/SemanticMaps/src/services/GoogleMaps3',
'localBasePath' => __DIR__ . '/../SemanticMaps/src/services/GoogleMaps3',
'remoteExtPath' => 'Maps/SemanticMaps/src/services/GoogleMaps3',
'group' => 'ext.semanticmaps',
'dependencies' => [
Expand All @@ -89,7 +89,7 @@ private function registerGoogleMaps() {

private function registerLeaflet() {
$this->mwGlobals['wgResourceModules']['ext.sm.fi.leafletajax'] = [
'localBasePath' => __DIR__ . '/SemanticMaps/src/services/Leaflet',
'localBasePath' => __DIR__ . '/../SemanticMaps/src/services/Leaflet',
'remoteExtPath' => 'Maps/SemanticMaps/src/services/Leaflet',
'group' => 'ext.semanticmaps',
'dependencies' => [
Expand All @@ -113,7 +113,7 @@ private function registerLeaflet() {

private function registerOpenLayers() {
$this->mwGlobals['wgResourceModules']['ext.sm.fi.openlayersajax'] = [
'localBasePath' => __DIR__ . '/SemanticMaps/src/services/OpenLayers',
'localBasePath' => __DIR__ . '/../SemanticMaps/src/services/OpenLayers',
'remoteExtPath' => 'Maps/SemanticMaps/src/services/OpenLayers',
'group' => 'ext.semanticmaps',
'dependencies' => [
Expand Down

0 comments on commit c67414e

Please sign in to comment.