From: Christian Weiske Date: Tue, 27 Mar 2012 16:00:32 +0000 (+0200) Subject: use custom config file when it exists X-Git-Tag: v0.1.0~92 X-Git-Url: https://git.cweiske.de/phorkie.git/commitdiff_plain/b8ec7e50b61c241d84a7b0e2c7be6c369a8c0dd2 use custom config file when it exists --- diff --git a/www/www-header.php b/www/www-header.php index 520d793..5b2fa56 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();