Skip to content

Commit

Permalink
Merge pull request #132 from muskie9/bugfix/templateConfig
Browse files Browse the repository at this point in the history
BUGFIX template path config not respecting updates
  • Loading branch information
muskie9 authored Nov 9, 2016
2 parents fa53e85 + db6c972 commit 1663cb6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/pages/Locator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 1663cb6

Please sign in to comment.