X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/c0d21d0bd3ec04d340c2e716a9f9482d36dff310..3c7519444867cd9c6b3003c4c88729df21b8c265:/website/details.php diff --git a/website/details.php b/website/details.php index 77e74969..91440b54 100644 --- a/website/details.php +++ b/website/details.php @@ -1,9 +1,9 @@ getBool('hierarchy', false); $bGroupHierarchy = $oParams->getBool('group_hierarchy', false); $bIncludePolygonAsGeoJSON = $oParams->getBool('polygon_geojson', false); -$oDB = new Nominatim\DB(); +$oDB = new Nominatim\DB(CONST_Database_DSN); $oDB->connect(); $sLanguagePrefArraySQL = $oDB->getArraySQL($oDB->getDBQuotedList($aLangPrefOrder)); @@ -77,7 +77,7 @@ if ($sOsmType && $iOsmId > 0) { $aPointDetails['error_x'] = 0; $aPointDetails['error_y'] = 0; } - include(CONST_BasePath.'/lib/template/details-error-'.$sOutputFormat.'.php'); + include(CONST_LibDir.'/template/details-error-'.$sOutputFormat.'.php'); exit; } } @@ -247,4 +247,4 @@ if ($bIncludeKeywords) { logEnd($oDB, $hLog, 1); -include(CONST_BasePath.'/lib/template/details-'.$sOutputFormat.'.php'); +include(CONST_LibDir.'/template/details-'.$sOutputFormat.'.php');