Skip to content

Commit 40ead06

Browse files
committed
Revert "Fix for #74"
1 parent 7d6e54e commit 40ead06

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

include/functions_map.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,6 @@ function osm_get_items($page)
186186
// SUBSTRING_INDEX(TRIM(LEADING '.' FROM `path`), '.', 1) full path without filename extension
187187
// SUBSTRING_INDEX(TRIM(LEADING '.' FROM `path`), '.', -1) full path with only filename extension
188188

189-
// Fix for issue #74: i.storage_category_id might be in the list of $forbidden categories, use ic.category_id instead
190189
$query="SELECT i.latitude, i.longitude,
191190
IFNULL(i.name, '') AS `name`,
192191
IF(i.representative_ext IS NULL,
@@ -202,7 +201,7 @@ function osm_get_items($page)
202201
)
203202
)
204203
) AS `pathurl`,
205-
TRIM(TRAILING '/' FROM CONCAT( i.id, '/category/', IFNULL(ic.category_id, '') ) ) AS `imgurl`,
204+
TRIM(TRAILING '/' FROM CONCAT( i.id, '/category/', IFNULL(i.storage_category_id, '') ) ) AS `imgurl`,
206205
IFNULL(i.comment, '') AS `comment`,
207206
IFNULL(i.author, '') AS `author`,
208207
i.width

0 commit comments

Comments
 (0)