X-Git-Url: https://git.cweiske.de/phorkie.git/blobdiff_plain/8c40f2a64ae2ba63a1ed6c89cb7ce8a4b07e4dd1..49a42cb5ac2e29668d2ac584e1a84d9818b047ea:/www/www-header.php diff --git a/www/www-header.php b/www/www-header.php index 5381eed..859d797 100644 --- a/www/www-header.php +++ b/www/www-header.php @@ -1,6 +1,6 @@ loadTemplate($tplname . '.htm'); - echo $template->render($vars); + + if ($return) { + return $template->render($vars); + } else { + echo $template->render($vars); + } } + function redirect($target) { header('Location: ' . $target);