git.cweiske.de
/
phorkie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
5428857
)
do not make it mandatory to pass template variables
author
Christian Weiske
<cweiske@cweiske.de>
Mon, 17 Sep 2012 20:56:17 +0000
(22:56 +0200)
committer
Christian Weiske
<cweiske@cweiske.de>
Mon, 17 Sep 2012 20:56:17 +0000
(22:56 +0200)
www/www-header.php
patch
|
blob
|
history
diff --git
a/www/www-header.php
b/www/www-header.php
index 96cd481829ac43a2e5c002d537253505f309269c..c8403152105d86e350f123340af274a4ad2c2f0d 100644
(file)
--- a/
www/www-header.php
+++ b/
www/www-header.php
@@
-72,7
+72,7
@@
$twig = new \Twig_Environment(
);
//$twig->addExtension(new \Twig_Extension_Debug());
-function render($tplname, $vars)
+function render($tplname, $vars
= array()
)
{
$vars['css'] = $GLOBALS['phorkie']['cfg']['css'];
$vars['title'] = $GLOBALS['phorkie']['cfg']['title'];