Skip to content

Commit

Permalink
fix url scheme of cache pic gallery overlay images; updates #1107
Browse files Browse the repository at this point in the history
  • Loading branch information
following5 committed Sep 5, 2017
1 parent f5cb541 commit 65038b0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions htdocs/viewcache.php
Expand Up @@ -294,7 +294,6 @@ function getChildWaypoints($cacheid)
`uuid`,
`url`,
`title`,
`thumb_url`,
`spoiler`,
`display`
FROM `pictures`
Expand All @@ -304,8 +303,13 @@ function getChildWaypoints($cacheid)
ORDER BY `seq`",
$cacheid
);
$tpl->assign_rs('pictures', $rs);
$cachepics = [];
while ($r = sql_fetch_assoc($rs)) {
$r['url'] = use_current_protocol($r['url']);
$cachepics[] = $r;
}
sql_free_result($rs);
$tpl->assign('pictures', $cachepics);

$tpl->assign('pictures_per_row', $opt['logic']['pictures']['listing_thumbs_per_row']);
// REDISGN TODO:
Expand Down

0 comments on commit 65038b0

Please sign in to comment.