mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 04:05:55 +00:00
add DiskCache.getUrl() and use it in a bunch of places
This commit is contained in:
@@ -676,7 +676,7 @@ class Article extends Handler_Protected {
|
||||
while ($line = $sth->fetch()) {
|
||||
|
||||
if (file_exists(CACHE_DIR . '/images/' . sha1($line["content_url"]))) {
|
||||
$line["content_url"] = get_self_url_prefix() . '/public.php?op=cached_url&hash=' . sha1($line["content_url"]);
|
||||
$line["content_url"] = DiskCache::getUrl(sha1($line["content_url"]));
|
||||
}
|
||||
|
||||
array_push($rv, $line);
|
||||
|
||||
Reference in New Issue
Block a user