diff options
| author | Christian Weiske <cweiske@cweiske.de> | 2012-09-17 22:56:17 +0200 |
|---|---|---|
| committer | Christian Weiske <cweiske@cweiske.de> | 2012-09-17 22:56:17 +0200 |
| commit | 9abfb5687cdbc08b60cb50fc15daab929a0f8f87 (patch) | |
| tree | f2878045cad4465f935e0a99b1e4cc3605492b85 | |
| parent | 54288571946a819e2b42f92583b0fb36ff57fa43 (diff) | |
| download | phorkie-9abfb5687cdbc08b60cb50fc15daab929a0f8f87.tar.gz phorkie-9abfb5687cdbc08b60cb50fc15daab929a0f8f87.zip | |
do not make it mandatory to pass template variables
| -rw-r--r-- | www/www-header.php | 2 |
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']; |
