summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/common.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/common.php b/app/common.php
index a434a73f..93e56816 100644
--- a/app/common.php
+++ b/app/common.php
@@ -11,6 +11,7 @@ if (getenv('DATABASE_URL')) {
define('DB_USERNAME', $dbopts["user"]);
define('DB_PASSWORD', $dbopts["pass"]);
define('DB_HOSTNAME', $dbopts["host"]);
+ define('DB_PORT', isset($dbopts["port"]) ? $dbopts["port"] : null;
define('DB_NAME', ltrim($dbopts["path"],'/'));
}