From 06266a27e391aa98b51e315f1e2e4f7004c970b2 Mon Sep 17 00:00:00 2001 From: Christoph Wildhagen Date: Sat, 30 Sep 2023 00:58:50 +0200 Subject: [PATCH 1/2] Show number of pictures per place This shows the number of pictures per place. This function was previously disabled, if the parameter 'mark' wasn't set to 0. I found no reason why this was the case. Signed-off-by: Christoph Wildhagen --- lib/ClustersBackend/PlacesBackend.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ClustersBackend/PlacesBackend.php b/lib/ClustersBackend/PlacesBackend.php index de3ca48d..0bd1b0f3 100644 --- a/lib/ClustersBackend/PlacesBackend.php +++ b/lib/ClustersBackend/PlacesBackend.php @@ -162,7 +162,7 @@ class PlacesBackend extends Backend $lang = Util::getUserLang(); foreach ($places as &$row) { $row['osm_id'] = (int) $row['osm_id']; - $row['count'] = $marked ? 0 : (int) $row['count']; // the count is incorrect + $row['count'] = (int) $row['sub.count']; self::choosePlaceLang($row, $lang); } From d7c55aa5a96c05ed68e73143976b9b9f276cdcd6 Mon Sep 17 00:00:00 2001 From: Christoph Wildhagen Date: Sun, 1 Oct 2023 13:07:05 +0200 Subject: [PATCH 2/2] Update source of count value --- lib/ClustersBackend/PlacesBackend.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ClustersBackend/PlacesBackend.php b/lib/ClustersBackend/PlacesBackend.php index 0bd1b0f3..2e386fb6 100644 --- a/lib/ClustersBackend/PlacesBackend.php +++ b/lib/ClustersBackend/PlacesBackend.php @@ -162,7 +162,7 @@ class PlacesBackend extends Backend $lang = Util::getUserLang(); foreach ($places as &$row) { $row['osm_id'] = (int) $row['osm_id']; - $row['count'] = (int) $row['sub.count']; + $row['count'] = (int) $row['count']; self::choosePlaceLang($row, $lang); }