X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/c0d21d0bd3ec04d340c2e716a9f9482d36dff310..b133f2bc4cd5e467ff6ef10124416b1307cfdb62:/website/reverse.php diff --git a/website/reverse.php b/website/reverse.php index 640ea2ab..553c2692 100644 --- a/website/reverse.php +++ b/website/reverse.php @@ -1,10 +1,10 @@ getPreferredLanguages(); -$oDB = new Nominatim\DB(); +$oDB = new Nominatim\DB(CONST_Database_DSN); $oDB->connect(); $hLog = logStart($oDB, 'reverse', $_SERVER['QUERY_STRING'], $aLangPrefOrder); @@ -84,4 +84,4 @@ if ($sOutputFormat == 'geocodejson') { } $sOutputTemplate = ($sOutputFormat == 'jsonv2') ? 'json' : $sOutputFormat; -include(CONST_BasePath.'/lib/template/address-'.$sOutputTemplate.'.php'); +include(CONST_LibDir.'/template/address-'.$sOutputTemplate.'.php');