use custom config file when it exists
[phorkie.git] / www / www-header.php
index 520d793520627c73ae116f882e0a6fdf299014dc..5b2fa565be7013ef339583b0f7dd2568980f3154 100644 (file)
@@ -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();