From b1dd38f880d843dad92f0d76838edd40f1bf687b Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 13 Aug 2019 12:39:21 +0300 Subject: add DiskCache.getUrl() and use it in a bunch of places --- classes/diskcache.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'classes/diskcache.php') diff --git a/classes/diskcache.php b/classes/diskcache.php index d21148041..9dbc010c6 100644 --- a/classes/diskcache.php +++ b/classes/diskcache.php @@ -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; + } } -- cgit v1.2.3-54-g00ecf