mirror of
https://github.com/openvk/chandler.git
synced 2024-11-15 03:31:12 +03:00
Bugfix
Template engine tried to recreate himself when HTTP error appears
This commit is contained in:
parent
a43eda027b
commit
65da4abe33
1 changed files with 1 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue