X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/69f30e8e193b5be4b7fc6b504641e6d17fe1827b..00aed47c6f40c12d108df4412d807f84c0bd7097:/utils/query.php diff --git a/utils/query.php b/utils/query.php index 9694bbb9..f8047ffc 100644 --- a/utils/query.php +++ b/utils/query.php @@ -25,7 +25,9 @@ $aCMDOptions ); getCmdOpt($_SERVER['argv'], $aCMDOptions, $aCMDResult, true, true); -$oDB =& getDB(); +$oDB = new Nominatim\DB; +$oDB->connect(); + $oParams = new Nominatim\ParameterParser($aCMDResult); if ($oParams->getBool('search')) {