X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/5ccb499a6f389913fe8c8c745a31dff40907b98c..797c2d1e74a14d8d52d963f1efad9be53fca5f5f:/website/deletable.php diff --git a/website/deletable.php b/website/deletable.php index 3283bb83..c55cb20f 100755 --- a/website/deletable.php +++ b/website/deletable.php @@ -2,20 +2,22 @@ require_once(dirname(dirname(__FILE__)).'/settings/settings.php'); require_once(CONST_BasePath.'/lib/init-website.php'); require_once(CONST_BasePath.'/lib/log.php'); + require_once(CONST_BasePath.'/lib/output.php'); + ini_set('memory_limit', '200M'); $sOutputFormat = 'html'; - ini_set('memory_limit', '200M'); $oDB =& getDB(); $sSQL = "select placex.place_id, calculated_country_code as country_code, name->'name' as name, i.* from placex, import_polygon_delete i where placex.osm_id = i.osm_id and placex.osm_type = i.osm_type and placex.class = i.class and placex.type = i.type"; - $aPolygons = $oDB->getAll($sSQL); - if (PEAR::isError($aPolygons)) + $aPolygons = chksql($oDB->getAll($sSQL), + "Could not get list of deleted OSM elements."); + + if (CONST_DEBUG) { - failInternalError("Could not get list of deleted OSM elements.", $sSQL, $aPolygons); + var_dump($aPolygons); + exit; } - -//var_dump($aPolygons); ?> @@ -66,6 +68,7 @@ table td {
'.$sVal.' | '; + echo ''.osmLink($aRow).' | '; break; case 'place_id': - echo ''.$sVal.' | '; + echo ''.detailsLink($aRow).' | '; break; default: echo "".($sVal?$sVal:' ')." | ";