X-Git-Url: https://git.cweiske.de/phorkie.git/blobdiff_plain/825c9662ddc1c534712056c458c8f6d71b81b921..808a3a5857c77ef99605fdfdde9b31b5c02e22c6:/www/www-header.php diff --git a/www/www-header.php b/www/www-header.php index d763742..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);