aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2012-09-17 22:56:17 +0200
committerChristian Weiske <cweiske@cweiske.de>2012-09-17 22:56:17 +0200
commit9abfb5687cdbc08b60cb50fc15daab929a0f8f87 (patch)
treef2878045cad4465f935e0a99b1e4cc3605492b85
parent54288571946a819e2b42f92583b0fb36ff57fa43 (diff)
downloadphorkie-9abfb5687cdbc08b60cb50fc15daab929a0f8f87.tar.gz
phorkie-9abfb5687cdbc08b60cb50fc15daab929a0f8f87.zip
do not make it mandatory to pass template variables
-rw-r--r--www/www-header.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/www/www-header.php b/www/www-header.php
index 96cd481..c840315 100644
--- 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'];