Install correct template path when site_local_files enabled
This commit is contained in:
1
Changes
1
Changes
@@ -3,6 +3,7 @@
|
|||||||
[BUG FIXES]
|
[BUG FIXES]
|
||||||
|
|
||||||
* Fix favicon image path to work on non-apex installations
|
* Fix favicon image path to work on non-apex installations
|
||||||
|
* Install correct template path when site_local_files enabled
|
||||||
|
|
||||||
2.038003 - 2018-01-04
|
2.038003 - 2018-01-04
|
||||||
|
|
||||||
|
|||||||
@@ -55,9 +55,11 @@ push @{ config->{engines}->{netdisco_template_toolkit}->{INCLUDE_PATH} },
|
|||||||
|
|
||||||
# any template paths in deployment.yml (should override plugins)
|
# any template paths in deployment.yml (should override plugins)
|
||||||
if (setting('template_paths') and ref [] eq ref setting('template_paths')) {
|
if (setting('template_paths') and ref [] eq ref setting('template_paths')) {
|
||||||
push @{setting('template_paths')},
|
if (setting('site_local_files')) {
|
||||||
dir(($ENV{NETDISCO_HOME} || $ENV{HOME}), 'nd-site-local', 'share')->stringify
|
push @{setting('template_paths')},
|
||||||
if (setting('site_local_files'));
|
dir(($ENV{NETDISCO_HOME} || $ENV{HOME}), 'nd-site-local', 'share')->stringify,
|
||||||
|
dir(($ENV{NETDISCO_HOME} || $ENV{HOME}), 'nd-site-local', 'share', 'views')->stringify;
|
||||||
|
}
|
||||||
unshift @{ config->{engines}->{netdisco_template_toolkit}->{INCLUDE_PATH} },
|
unshift @{ config->{engines}->{netdisco_template_toolkit}->{INCLUDE_PATH} },
|
||||||
@{setting('template_paths')};
|
@{setting('template_paths')};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user