From db6c972f4e339f7ea824e9fe5f757ef30a9cba39 Mon Sep 17 00:00:00 2001 From: Nic Horstmeier Date: Wed, 9 Nov 2016 15:45:09 -0600 Subject: [PATCH] BUGFIX template path config not respecting updates --- code/pages/Locator.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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';