]> git.openstreetmap.org Git - nominatim.git/blobdiff - website/lookup.php
use explicit DSN for website scripts
[nominatim.git] / website / lookup.php
index e4a98939b93bf4b2ca0acfd810966061da1f8de2..737edc62985d6c795a755f40c0b7b6501efd7306 100644 (file)
@@ -15,7 +15,7 @@ set_exception_handler_by_format($sOutputFormat);
 // Preferred language
 $aLangPrefOrder = $oParams->getPreferredLanguages();
 
-$oDB = new Nominatim\DB();
+$oDB = new Nominatim\DB(CONST_Database_DSN);
 $oDB->connect();
 
 $hLog = logStart($oDB, 'place', $_SERVER['QUERY_STRING'], $aLangPrefOrder);