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