footer schmooter

This commit is contained in:
2022-12-20 13:26:32 +01:00
parent 9f030dbb28
commit b2591bd1b6
3 changed files with 18 additions and 1 deletions

View File

@ -9,10 +9,13 @@ require_once('./inc/router.inc.php');
$tpl = (object)$tpl;
$generated = round(microtime(true) - $_SERVER['REQUEST_TIME_FLOAT'], 5);
if(!@$tpl->debug) {
tpl::view('tpl/' . $tpl->file,
array_merge([
'page' => $_page
'page' => $_page,
'generated' => $generated
],
gettype($tpl->data) !== 'string' ? $tpl->data : [])
);