Search for config file in both locations

This commit is contained in:
Frederic Guillot 2016-02-06 12:42:13 -05:00
parent 7df68511a5
commit fc785bbbf6
1 changed files with 3 additions and 1 deletions

View File

@ -16,7 +16,9 @@ if (getenv('DATABASE_URL')) {
if (file_exists('config.php')) {
require 'config.php';
} elseif (file_exists('data'.DIRECTORY_SEPARATOR.'config.php')) {
}
if (file_exists('data'.DIRECTORY_SEPARATOR.'config.php')) {
require 'data'.DIRECTORY_SEPARATOR.'config.php';
}