From 06266a27e391aa98b51e315f1e2e4f7004c970b2 Mon Sep 17 00:00:00 2001 From: Christoph Wildhagen Date: Sat, 30 Sep 2023 00:58:50 +0200 Subject: [PATCH] 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); }