X-Git-Url: https://git.cweiske.de/phorkie.git/blobdiff_plain/bc5dc89cb33243ff64064875b4bc2c629d812bb9..83a87530ac660a7d71f3d86ef93dc896d878696f:/www/www-header.php diff --git a/www/www-header.php b/www/www-header.php index 1888839..1d59b1c 100644 --- a/www/www-header.php +++ b/www/www-header.php @@ -98,6 +98,9 @@ function render($tplname, $vars = array()) $vars['email'] = $_SESSION['email']; } $vars['db'] = new Database(); + if (!isset($vars['htmlhelper'])) { + $vars['htmlhelper'] = new HtmlHelper(); + } $template = $GLOBALS['twig']->loadTemplate($tplname . '.htm'); echo $template->render($vars);