summaryrefslogtreecommitdiff
path: root/app/common.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-12-10 20:01:52 -0500
committerFrederic Guillot <fred@kanboard.net>2015-12-10 20:01:52 -0500
commit786e360d0b8a18f6810ff798824c6ae3f5583ec0 (patch)
treef703f8fe96f846fa53badc51b08e69dd09220f1d /app/common.php
parentd2f96f294ad647cd072aff3f40257c2f20ace697 (diff)
Try to load config.php from /data if not available
Diffstat (limited to 'app/common.php')
-rw-r--r--app/common.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/common.php b/app/common.php
index fe5a7e69..91e24c65 100644
--- a/app/common.php
+++ b/app/common.php
@@ -16,6 +16,8 @@ if (getenv('DATABASE_URL')) {
if (file_exists('config.php')) {
require 'config.php';
+} elseif (file_exists('data'.DIRECTORY_SEPARATOR.'config.php')) {
+ require 'data'.DIRECTORY_SEPARATOR.'config.php';
}
require __DIR__.'/constants.php';