X-Git-Url: https://git.cweiske.de/phorkie.git/blobdiff_plain/bc5dc89cb33243ff64064875b4bc2c629d812bb9..79c1bd43280da948530b75e0036e181a39d1e5f1:/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);