X-Git-Url: https://git.cweiske.de/phorkie.git/blobdiff_plain/e0f69ba3ebc233b416eb83553bb9460075195d1a..b5859f1f2baf8dc945cbeac0622f8f1039702171:/www/www-header.php diff --git a/www/www-header.php b/www/www-header.php index ef948e4..859d797 100644 --- a/www/www-header.php +++ b/www/www-header.php @@ -1,19 +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);