X-Git-Url: https://git.cweiske.de/phorkie.git/blobdiff_plain/eb1de6598347f0b00d13a4a8ba20c475d149b1fa..966b9033d71b5226a3209658b81cec21024bd0b6:/www/www-header.php diff --git a/www/www-header.php b/www/www-header.php index b58bd95..859d797 100644 --- a/www/www-header.php +++ b/www/www-header.php @@ -1,5 +1,7 @@ loadTemplate($tplname . '.htm'); - echo $template->render($vars); + + if ($return) { + return $template->render($vars); + } else { + echo $template->render($vars); + } } + function redirect($target) { header('Location: ' . $target);