diff options
author | Andrew Dolgov <[email protected]> | 2019-08-13 12:39:21 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2019-08-13 12:39:21 +0300 |
commit | b1dd38f880d843dad92f0d76838edd40f1bf687b (patch) | |
tree | 5a765e132ce74911e0b68596fa51118e4ee0f7a0 /classes/article.php | |
parent | 7602819b9825ffe2013e214b6d072ae798d5541a (diff) |
add DiskCache.getUrl() and use it in a bunch of places
Diffstat (limited to 'classes/article.php')
-rwxr-xr-x | classes/article.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/article.php b/classes/article.php index 43b25f94f..2f43b9b07 100755 --- a/classes/article.php +++ b/classes/article.php @@ -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); |