X-Git-Url: https://git.cweiske.de/phorkie.git/blobdiff_plain/bfa1501efa1a49893208c794ea262a075b13fc1d..88909f2355e6e53eec67a990c877cb64653cded4:/www/www-header.php diff --git a/www/www-header.php b/www/www-header.php index 520d793..01214d7 100644 --- a/www/www-header.php +++ b/www/www-header.php @@ -27,6 +27,9 @@ set_exception_handler( ); require_once __DIR__ . '/../data/config.default.php'; +if (file_exists(__DIR__ . '/../data/config.php')) { + require_once __DIR__ . '/../data/config.php'; +} require_once 'VersionControl/Git.php'; require_once 'Twig/Autoloader.php'; \Twig_Autoloader::register(); @@ -42,6 +45,7 @@ $twig = new \Twig_Environment( function render($tplname, $vars) { + $vars['css'] = $GLOBALS['phorkie']['cfg']['css']; $template = $GLOBALS['twig']->loadTemplate($tplname . '.htm'); echo $template->render($vars); }