From 4853cb9d7ba0503a544b1b2b173581254a841896 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Wed, 21 Jun 2023 08:52:28 +0200 Subject: [PATCH] fix unset template path --- src/Templator.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Templator.php b/src/Templator.php index 289c5a3..e5dea7b 100644 --- a/src/Templator.php +++ b/src/Templator.php @@ -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(); }