20240410#9
This commit is contained in:
1 parent
bbaf319dc8
commit
94ada77e89
1 file changed
+1
-1
+1
-1
@@ -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");
|
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();
|
ob_start(); include ContentData::$subtemplatePath.$incFile; $out = ob_get_contents(); ob_end_clean();
|
||||||
return $out;
|
return $out;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user