20240410#11

This commit is contained in:
User
2024-04-10 03:46:37 +03:00
parent 3b4836bb5e
commit e96bc71eff

View File

@@ -81,7 +81,7 @@ class Content implements TemplateInterface {
foreach ($resource as $resKey => $resVal){ foreach ($resource as $resKey => $resVal){
$this->{$resKey} = $resVal; $this->{$resKey} = $resVal;
} }
if(empty($incFile) || !file_exists(ContentData::$subtemplatePath.$incFile)) throw new AppError("Empty inc file ".$incFile); if(empty($incFile) || !file_exists(ContentData::$subtemplatePath.$incFile)) throw new AppError("Inc file ".$incFile." is not found");
ob_start(); include ContentData::$subtemplatePath.$incFile; $out = ob_get_contents(); ob_end_clean(); ob_start(); include ContentData::$subtemplatePath.$incFile; $out = ob_get_contents(); ob_end_clean();
return $out; return $out;
} }