diff --git a/code/pages/Locator.php b/code/pages/Locator.php index 4b50751..eb49c6b 100644 --- a/code/pages/Locator.php +++ b/code/pages/Locator.php @@ -242,8 +242,8 @@ public function init() $load = 'autoGeocode: false, fullMapStart: true, storeLimit: 1000, maxDistance: true,'; } - $listTemplatePath = $this->config()->get('list_template_path'); - $infowindowTemplatePath = $this->config()->get('info_window_template_path'); + $listTemplatePath = Config::inst()->get('Locator', 'list_template_path'); + $infowindowTemplatePath = Config::inst()->get('Locator', 'info_window_template_path'); // in page or modal $modal = ($this->data()->ModalWindow) ? 'modalWindow: true' : 'modalWindow: false';