X-Git-Url: https://git.openstreetmap.org/nominatim.git/blobdiff_plain/25bdd7c6d99f99e5fe01c86477be1dcabc35ec98..15a1666f8a1e19c338015fccd502be6cfd5c24df:/lib/DB.php diff --git a/lib/DB.php b/lib/DB.php index 2b53dba8..0454a0ff 100644 --- a/lib/DB.php +++ b/lib/DB.php @@ -12,9 +12,9 @@ class DB { protected $connection; - public function __construct($sDSN = CONST_Database_DSN) + public function __construct($sDSN = null) { - $this->sDSN = $sDSN; + $this->sDSN = $sDSN ?? getSetting('DATABASE_DSN'); } public function connect($bNew = false, $bPersistent = true)