X-Git-Url: https://git.cweiske.de/phinde.git/blobdiff_plain/e5c7780adb59e8038a040a1e534a4cee1fac8cd8..1979dce952f8274c18ed7f662318f27aadf6c01a:/www/www-header.php diff --git a/www/www-header.php b/www/www-header.php index 2ec8c2f..e5cee94 100644 --- a/www/www-header.php +++ b/www/www-header.php @@ -2,7 +2,6 @@ namespace phinde; require_once __DIR__ . '/../src/init.php'; -\Twig_Autoloader::register(); $GLOBALS['twig'] = new \Twig_Environment( new \Twig_Loader_Filesystem(__DIR__ . '/../data/templates'), array( @@ -26,7 +25,8 @@ function render($tplname, $vars = array(), $return = false) if (!isset($vars['htmlhelper'])) { //$vars['htmlhelper'] = new HtmlHelper(); } - $vars['apptitle'] = 'cweiske.de search'; + $vars['apptitle'] = $GLOBALS['phinde']['apptitle']; + $vars['baseUrl'] = '/'; $template = $GLOBALS['twig']->loadTemplate($tplname . '.htm'); if ($return) {