From c67414e5b32f500977e27abf0c11032c4509e667 Mon Sep 17 00:00:00 2001 From: jeroendedauw Date: Tue, 6 Dec 2016 03:44:39 +0100 Subject: [PATCH] Fixed JS paths for SM files Broken in the last patch release due to moving of SM init code and use of __DIR__ --- src/SemanticMaps.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/SemanticMaps.php b/src/SemanticMaps.php index 1efe14e19..4215905f9 100644 --- a/src/SemanticMaps.php +++ b/src/SemanticMaps.php @@ -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' @@ -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' => [ @@ -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' => [ @@ -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' => [