From d09bd2836a393e06971a3cd14fac44ee67ea167e Mon Sep 17 00:00:00 2001 From: User Date: Wed, 10 Apr 2024 03:49:52 +0300 Subject: [PATCH] 20240410#12 --- src/Content.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Content.php b/src/Content.php index 66c1297..378859c 100644 --- a/src/Content.php +++ b/src/Content.php @@ -59,7 +59,7 @@ class Content implements TemplateInterface { public function addSubtemplate(string $point, string $subtemplate, array $resource = []) : void { if (empty(ContentData::$subtemplatePath))throw new AppError("SubtemplatePath is not defined"); if (empty($point)) throw new AppError("Empty point"); - if (empty($subtemplate) || !file_exists(ContentData::$subtemplatePath.$subtemplate)) throw new AppError(ContentData::$subtemplatePath.$subtemplate. " is not found"); + if (empty($subtemplate) || !file_exists(ContentData::$subtemplatePath.$subtemplate)) throw new AppError("Subtemplate ".ContentData::$subtemplatePath.$subtemplate. " is not found"); foreach ($resource as $resKey => $resVal){ $this->{$resKey} = $resVal; }