]> git.openstreetmap.org Git - nominatim.git/blobdiff - website/polygons.php
replace database abstraction DB with PDO
[nominatim.git] / website / polygons.php
index e5d459f3604e4b05f8e90e15d4df263fe9ce1cf8..00e043bdaf3cef6642a7dd6d01be6b3d011fa24f 100644 (file)
@@ -12,7 +12,8 @@ $iDays = $oParams->getInt('days', false);
 $bReduced = $oParams->getBool('reduced', false);
 $sClass = $oParams->getString('class', false);
 
-$oDB =& getDB();
+$oDB = new Nominatim\DB();
+$oDB->connect();
 
 $iTotalBroken = (int) chksql($oDB->getOne('select count(*) from import_polygon_error'));