X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/25baaf530dea28b7cf3c72ba4e83f3ebed05629f..58852b3eebf712dbf0e87a2a7aa98ba6b39ef02d:/website/lookup.php?ds=sidebyside diff --git a/website/lookup.php b/website/lookup.php old mode 100755 new mode 100644 index f09506a4..20d06af0 --- a/website/lookup.php +++ b/website/lookup.php @@ -1,7 +1,5 @@ getSet('format', array('xml', 'json', 'geojson'), 'xml'); +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);