From 9abfb5687cdbc08b60cb50fc15daab929a0f8f87 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Mon, 17 Sep 2012 22:56:17 +0200 Subject: [PATCH] do not make it mandatory to pass template variables --- www/www-header.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']; -- 2.30.2