X-Git-Url: https://git.openstreetmap.org/nominatim.git/blobdiff_plain/1d8e2961f0527a548989c1e38bb062f2f9e5877e..e871fabd5ffccb9b6db16a813c3addc89683d4e6:/website/status.php diff --git a/website/status.php b/website/status.php index c0c379d0..0d483544 100644 --- a/website/status.php +++ b/website/status.php @@ -1,8 +1,5 @@ getSet('format', array('text', 'json'), 'text'); -$oDB = DB::connect(CONST_Database_DSN, false); -$oStatus = new Nominatim\Status($oDB); - +$oDB = new Nominatim\DB(); if ($sOutputFormat == 'json') { header('content-type: application/json; charset=UTF-8'); @@ -20,6 +15,7 @@ if ($sOutputFormat == 'json') { try { + $oStatus = new Nominatim\Status($oDB); $oStatus->status(); } catch (Exception $oErr) { if ($sOutputFormat == 'json') {