fix unset template path

This commit is contained in:
Jean-Christian Paul Denis 2023-06-21 08:52:28 +02:00
parent a329179894
commit 4853cb9d7b
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951

View File

@ -87,6 +87,10 @@ class Templator
$this->user_tpl_category = Path::real(implode(DIRECTORY_SEPARATOR, [$this->user_path_theme, self::THEME_TPL_DIR, self::DEFAULT_TPL_CATEGORY])) ?: '';
$this->user_tpl_page = Path::real(implode(DIRECTORY_SEPARATOR, [$this->user_path_theme, self::THEME_TPL_DIR, self::DEFAULT_TPL_PAGE])) ?: '';
if (!is_dir($this->path)) {
Files::makeDir($this->path);
}
$this->findTemplates();
}