Skip to content

Commit 5e1278d

Browse files
committed
Merge pull request #77 from joubu/issue_64
Only display the current pin on the picture page, Fix #64
2 parents 72ca809 + 9aafd7d commit 5e1278d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

include/functions_map.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,9 @@ 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+
190+
if (isset($page['image_id'])) $LIMIT_SEARCH .= 'i.id = ' . $page['image_id'] . ' AND ';
191+
189192
$query="SELECT i.latitude, i.longitude,
190193
IFNULL(i.name, '') AS `name`,
191194
IF(i.representative_ext IS NULL,

0 commit comments

Comments
 (0)