X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/764dcd7f6459c08aafd5cf2fcb7902cc2868cb30..c3238682a8867edfb3c052ca4d2d27b3926ad17a:/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');