Skip to content
Permalink
Browse files

fix url scheme of cache pic gallery overlay images; updates #1107

  • Loading branch information...
following5 committed Sep 5, 2017
1 parent f5cb541 commit 65038b0f30cac602fe4a4256c556698810c982fb
Showing with 6 additions and 2 deletions.
  1. +6 −2 htdocs/viewcache.php
@@ -294,7 +294,6 @@ function getChildWaypoints($cacheid)
`uuid`,
`url`,
`title`,
`thumb_url`,
`spoiler`,
`display`
FROM `pictures`
@@ -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:

0 comments on commit 65038b0

Please sign in to comment.
You can’t perform that action at this time.