X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/ce1c3bab6d94163656c3bb06f735b27e6be2198b..5d656891ba072d88b8b281d239d0dce9f7bd6a1c:/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');