summaryrefslogtreecommitdiff
path: root/app/common.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/common.php')
-rw-r--r--app/common.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/common.php b/app/common.php
index da624844..c9907ce1 100644
--- a/app/common.php
+++ b/app/common.php
@@ -14,12 +14,12 @@ if (getenv('DATABASE_URL')) {
define('DB_NAME', ltrim($dbopts["path"], '/'));
}
-if (file_exists('config.php')) {
- require 'config.php';
+if (file_exists(__DIR__.DIRECTORY_SEPARATOR.'config.php')) {
+ require __DIR__.DIRECTORY_SEPARATOR.'config.php';
}
-if (file_exists('data'.DIRECTORY_SEPARATOR.'config.php')) {
- require 'data'.DIRECTORY_SEPARATOR.'config.php';
+if (file_exists(__DIR__.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'data'.DIRECTORY_SEPARATOR.'config.php')) {
+ require __DIR__.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'data'.DIRECTORY_SEPARATOR.'config.php';
}
require __DIR__.'/constants.php';