From 65da4abe3341dd61a904a05ddc650412ffe3befe Mon Sep 17 00:00:00 2001 From: veselcraft Date: Sun, 24 Jan 2021 14:47:32 +0300 Subject: [PATCH] Bugfix Template engine tried to recreate himself when HTTP error appears --- chandler/MVC/SimplePresenter.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/chandler/MVC/SimplePresenter.php b/chandler/MVC/SimplePresenter.php index a746cd5..3a4c0cc 100644 --- a/chandler/MVC/SimplePresenter.php +++ b/chandler/MVC/SimplePresenter.php @@ -74,8 +74,7 @@ abstract class SimplePresenter implements IPresenter $ext = explode("\\", get_class($this))[0]; $path = CHANDLER_EXTENSIONS_ENABLED . "/$ext/Web/Presenters/templates/" . $this->errorTemplate . ".xml"; - $latte = new TemplatingEngine; - $latte->setTempDirectory(CHANDLER_ROOT . "/tmp/cache/templates"); + $latte = $this->getTemplatingEngine(); $latte->render($path, array_merge_recursive([ "code" => $code, "desc" => $desc,