X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/fae8da2bcb78d6020231b42a5a3f2444b64755eb..b522ea6dc77f39132d6ab4b288fb18c25d2104c0:/website/lookup.php?ds=sidebyside 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);