X-Git-Url: https://git.cweiske.de/phorkie.git/blobdiff_plain/f92fbaf636d620a0092fff8b715be9a493547b4f..HEAD:/www/www-header.php diff --git a/www/www-header.php b/www/www-header.php index eaf1952..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);