X-Git-Url: https://git.cweiske.de/phorkie.git/blobdiff_plain/2b4b34a76f42841e964a549fc64c02ba4f60a3f4..fc234493b55a7d4937c8f18e8b83470628d160b9:/www/www-header.php diff --git a/www/www-header.php b/www/www-header.php index 77ee758..0fd3c79 100644 --- a/www/www-header.php +++ b/www/www-header.php @@ -21,7 +21,13 @@ set_exception_handler( } else { header('HTTP/1.0 500 Internal server error'); } - render('exception', array('exception' => $e)); + render( + 'exception', + array( + 'exception' => $e, + 'debug' => $GLOBALS['phorkie']['cfg']['debug'] + ) + ); exit(); } ); @@ -46,6 +52,9 @@ $twig = new \Twig_Environment( function render($tplname, $vars) { $vars['css'] = $GLOBALS['phorkie']['cfg']['css']; + $vars['title'] = $GLOBALS['phorkie']['cfg']['title']; + $vars['topbar'] = $GLOBALS['phorkie']['cfg']['topbar']; + $template = $GLOBALS['twig']->loadTemplate($tplname . '.htm'); echo $template->render($vars); }