do not make it mandatory to pass template variables
authorChristian Weiske <cweiske@cweiske.de>
Mon, 17 Sep 2012 20:56:17 +0000 (22:56 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Mon, 17 Sep 2012 20:56:17 +0000 (22:56 +0200)
www/www-header.php

index 96cd481..c840315 100644 (file)
@@ -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'];