X-Git-Url: https://git.cweiske.de/phorkie.git/blobdiff_plain/3e89794cd18eec5b921aa72471a6890fdf40846e..78215a8279ecc048bd6bbb6a4977ee58766928b6:/www/www-header.php?ds=sidebyside diff --git a/www/www-header.php b/www/www-header.php index c99f8c8..859d797 100644 --- a/www/www-header.php +++ b/www/www-header.php @@ -1,21 +1,10 @@ loadTemplate($tplname . '.htm'); - echo $template->render($vars); + + if ($return) { + return $template->render($vars); + } else { + echo $template->render($vars); + } } + function redirect($target) { header('Location: ' . $target);