X-Git-Url: https://git.cweiske.de/phorkie.git/blobdiff_plain/b8ec7e50b61c241d84a7b0e2c7be6c369a8c0dd2..03bca6d0304209d14c6bfaae0e1fb4b85057adfd:/www/www-header.php diff --git a/www/www-header.php b/www/www-header.php index 5b2fa56..756bdc9 100644 --- a/www/www-header.php +++ b/www/www-header.php @@ -1,5 +1,5 @@ $e)); + render( + 'exception', + array( + 'exception' => $e, + 'debug' => $GLOBALS['phorkie']['cfg']['debug'] + ) + ); exit(); } ); @@ -45,6 +51,9 @@ $twig = new \Twig_Environment( function render($tplname, $vars) { + $vars['css'] = $GLOBALS['phorkie']['cfg']['css']; + $vars['title'] = $GLOBALS['phorkie']['cfg']['title']; + $template = $GLOBALS['twig']->loadTemplate($tplname . '.htm'); echo $template->render($vars); }