X-Git-Url: https://git.cweiske.de/phorkie.git/blobdiff_plain/239fca45d3685c2f3290015b49470f945648a8e5..4137e993d11e926ae28343c1eeac1a46977efd47:/www/www-header.php diff --git a/www/www-header.php b/www/www-header.php index 56c7b8e..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);