Skip to content

Commit f81072b

Browse files
committed
Merge pull request #86 from xbgmsharp/revert-85-Fix-for-#74
Fix wrong category in URL #74 #85
2 parents 7d6e54e + 40ead06 commit f81072b

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)