X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/c386cca73f3fd1e10681f3f157544e46d74e5b48..496a3d29db0edcc7f2ed5bd279aba1da53f24d3c:/website/lookup.php diff --git a/website/lookup.php b/website/lookup.php index db2c01d6..737edc62 100644 --- a/website/lookup.php +++ b/website/lookup.php @@ -1,9 +1,9 @@ getPreferredLanguages(); -$oDB = new Nominatim\DB(); +$oDB = new Nominatim\DB(CONST_Database_DSN); $oDB->connect(); $hLog = logStart($oDB, 'place', $_SERVER['QUERY_STRING'], $aLangPrefOrder); @@ -84,4 +84,4 @@ $sMoreURL = ''; logEnd($oDB, $hLog, 1); $sOutputTemplate = ($sOutputFormat == 'jsonv2') ? 'json' : $sOutputFormat; -include(CONST_BasePath.'/lib/template/search-'.$sOutputTemplate.'.php'); +include(CONST_LibDir.'/template/search-'.$sOutputTemplate.'.php');