fixed array saving bug
All checks were successful
Build and push / Pulling repo on server (push) Successful in 2s

This commit is contained in:
2023-10-29 09:16:10 +01:00
parent 727a7d3dfb
commit 460fb6b1ee
4 changed files with 15 additions and 8 deletions

View File

@ -246,8 +246,11 @@ function pictshareUploadImage($path,$hash=false)
function partial($name,$variables=[])
{
$templatefile = ROOT.DS.'templates'.DS.'partials'.DS.$name;
//render template by running include
return template($name,$variables);
}
function template($templatefile,$variables=[])
{
ob_start();
if(is_array($variables))
extract($variables);