git.cweiske.de
/
phorkie.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Implement #37: Add avatar to navbar and profile page.
[phorkie.git]
/
www
/
www-header.php
diff --git
a/www/www-header.php
b/www/www-header.php
index 1888839746f7f7e5b3e2eb509da0f792d47bfded..1d59b1c4feb7447628bd0e3f278946b62b090225 100644
(file)
--- 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);