} 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();
}
);
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);
}