X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/7523359aba2814bd143ccb0f18d20b54b611c7eb..0daf2d5cbf2e7ec558b5bc4dfe511e0f8f2d76b2:/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')) {