]> git.openstreetmap.org Git - nominatim.git/blobdiff - website/lookup.php
Merge pull request #1347 from mtmail/pdo-returns-proper-boolean
[nominatim.git] / website / lookup.php
index ae76df2fe4b0cad0c5d746977f4a30009296e58f..20d06af0a1ceab059418a14b0329305341304533 100644 (file)
@@ -15,7 +15,8 @@ set_exception_handler_by_format($sOutputFormat);
 // Preferred language
 $aLangPrefOrder = $oParams->getPreferredLanguages();
 
-$oDB =& getDB();
+$oDB = new Nominatim\DB();
+$oDB->connect();
 
 $hLog = logStart($oDB, 'place', $_SERVER['QUERY_STRING'], $aLangPrefOrder);