From 94ada77e891bc424dc912dd0a2c63704902c54dd Mon Sep 17 00:00:00 2001 From: User Date: Wed, 10 Apr 2024 03:39:40 +0300 Subject: [PATCH] 20240410#9 --- src/Content.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Content.php b/src/Content.php index a953aff..4106a8e 100644 --- a/src/Content.php +++ b/src/Content.php @@ -81,7 +81,7 @@ class Content implements TemplateInterface { foreach ($resource as $resKey => $resVal){ $this->{$resKey} = $resVal; } - if(empty($incFile) || !file_exists(ContentData::$subtemplatePath.$incFile)) throw new AppError("Empty inc file"); + if(empty($incFile) || !file_exists(ContentData::$subtemplatePath.$incFile)) throw new AppError("Empty inc file: ".$incFile); ob_start(); include ContentData::$subtemplatePath.$incFile; $out = ob_get_contents(); ob_end_clean(); return $out; }