20240502#2

This commit is contained in:
User
2024-05-02 12:01:28 +03:00
parent e03c9bccfc
commit 8b92eecba1

View File

@@ -18,7 +18,7 @@ abstract class AbstractPageController extends AbstractController {
public function exceptionPage(Exception $exception, array $data = []) : void {
$this->logException($exception, $data);
$this->syslogger()->warning($exception->getMessage()." on ".$exception->getFile().":".$exception->getLine(), $data);
$this->template()->setSubtemplate("main", "/templates/error/errpage.tpl", [
$this->template()->setSubtemplate("main", "/error/errpage.tpl", [
"errorText" => "<span style='color:red'>Error: ".$exception->getMessage()." (".$exception->getCode().")"."</span>"
]);
}