1
0
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:
Andrew Dolgov
2019-08-13 12:39:21 +03:00
parent 7602819b98
commit b1dd38f880
4 changed files with 7 additions and 16 deletions

View File

@@ -56,4 +56,8 @@ class DiskCache {
public function send($filename) {
return send_local_file($this->getFullPath($filename));
}
static public function getUrl($filename) {
return get_self_url_prefix() . "/public.php?op=cached_url&file=" . $filename;
}
}