use last changes form Dotclear 2.28
This commit is contained in:
parent
8cc697c7da
commit
b7414f1ff7
1 changed files with 4 additions and 5 deletions
|
@ -61,12 +61,11 @@ class UrlHandler extends Url
|
|||
}
|
||||
|
||||
# Set default-templates path for disclaimer files
|
||||
$tplset = App::themes()->moduleInfo(App::blog()->settings()->get('system')->get('theme'), 'tplset');
|
||||
if (!empty($tplset) && is_dir(My::path() . '/default-templates/' . $tplset)) {
|
||||
App::frontend()->template()->setPath(App::frontend()->template()->getPath(), My::path() . '/default-templates/' . $tplset);
|
||||
} else {
|
||||
App::frontend()->template()->setPath(App::frontend()->template()->getPath(), My::path() . '/default-templates/' . App::config()->defaultTplset());
|
||||
$tplset = App::themes()->getDefine(App::blog()->settings()->get('system')->get('theme'))->get('tplset');
|
||||
if (empty($tplset) || !is_dir(implode(DIRECTORY_SEPARATOR, [My::path(), 'default-templates', $tplset]))) {
|
||||
$tplset = App::config()->defaultTplset();
|
||||
}
|
||||
App::frontend()->template()->appendPath(implode(DIRECTORY_SEPARATOR, [My::path(), 'default-templates', $tplset]));
|
||||
|
||||
# New URL handler
|
||||
$urlHandler = new HelperHandler();
|
||||
|
|
Loading…
Reference in a new issue