diff --git a/src/Netzmacht/Contao/Leaflet/Request/RequestUrl.php b/src/Netzmacht/Contao/Leaflet/Request/RequestUrl.php index 0b5206c..60339de 100644 --- a/src/Netzmacht/Contao/Leaflet/Request/RequestUrl.php +++ b/src/Netzmacht/Contao/Leaflet/Request/RequestUrl.php @@ -20,7 +20,7 @@ use ContaoCommunityAlliance\UrlBuilder\UrlBuilder; */ class RequestUrl { - const BASE = 'assets/leaflet/data.php'; + const BASE = 'assets/leaflet/maps/data.php'; /** * Create the request url. diff --git a/src/Netzmacht/Contao/Leaflet/Subscriber/BootSubscriber.php b/src/Netzmacht/Contao/Leaflet/Subscriber/BootSubscriber.php index 3d5bcd0..449b5e4 100644 --- a/src/Netzmacht/Contao/Leaflet/Subscriber/BootSubscriber.php +++ b/src/Netzmacht/Contao/Leaflet/Subscriber/BootSubscriber.php @@ -114,7 +114,7 @@ class BootSubscriber implements EventSubscriberInterface */ public function loadAssets() { - $GLOBALS['TL_JAVASCRIPT'][] = 'assets/leaflet/libs/contao/contao-leaflet.js' . (\Config::get('debugMode') + $GLOBALS['TL_JAVASCRIPT'][] = 'assets/leaflet/maps/contao-leaflet.js' . (\Config::get('debugMode') ? '' : '|static' );