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 96cd481829ac43a2e5c002d537253505f309269c..c8403152105d86e350f123340af274a4ad2c2f0d 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'];