X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/b20a534e0c253e9371377efe75b4682b5070ffa3..d4b633bfc50188f36e3c4a8b2b99c3a0e6a7f12e:/website/lookup.php diff --git a/website/lookup.php b/website/lookup.php index ae76df2f..20d06af0 100644 --- a/website/lookup.php +++ b/website/lookup.php @@ -15,7 +15,8 @@ set_exception_handler_by_format($sOutputFormat); // Preferred language $aLangPrefOrder = $oParams->getPreferredLanguages(); -$oDB =& getDB(); +$oDB = new Nominatim\DB(); +$oDB->connect(); $hLog = logStart($oDB, 'place', $_SERVER['QUERY_STRING'], $aLangPrefOrder);