From: Christian Weiske Date: Mon, 17 Sep 2012 20:56:17 +0000 (+0200) Subject: do not make it mandatory to pass template variables X-Git-Tag: v0.3.0~42^2~38 X-Git-Url: https://git.cweiske.de/phorkie.git/commitdiff_plain/9abfb5687cdbc08b60cb50fc15daab929a0f8f87?hp=54288571946a819e2b42f92583b0fb36ff57fa43 do not make it mandatory to pass template variables --- 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'];