]> git.openstreetmap.org Git - nominatim.git/blobdiff - website/details.php
Merge pull request #2115 from lonvia/use-dotenv
[nominatim.git] / website / details.php
index 2f91b2bb4de2b9aa81b2f0e21dc0668285dc283f..91440b542a863c0c294337c174af54c9678bc115 100644 (file)
@@ -25,7 +25,7 @@ $bIncludeHierarchy = $oParams->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));