automatically add file extension to new files when it has no extension
[phorkie.git] / www / www-header.php
index 520d793520627c73ae116f882e0a6fdf299014dc..77ee7583c5cd97c5129c49df7777243c66f4b04f 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-namespace Phorkie;
+namespace phorkie;
 set_include_path(
     __DIR__ . '/../src/'
     . PATH_SEPARATOR . get_include_path()
@@ -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);
 }