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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user