X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/b5480f6e366be7c7d06d8444acc4cfd6a1aa31e2..3cdfe066336ad19772d300a85d6c1feaadc074ea:/lib/DB.php?ds=sidebyside 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)