summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2017-02-10 15:14:47 +0300
committerAndrew Dolgov <[email protected]>2017-02-10 15:14:47 +0300
commitfafd32e2dc98eeb3a159c29b12cee2d144ad243f (patch)
tree6094ea8525b1aad353c7a607d6b1daebbff80949 /include
parentdc8bd8a640ee7d4508212e12823fc9094258e819 (diff)
use get_self_url_prefix() when rewriting cached images
Diffstat (limited to 'include')
-rw-r--r--include/functions2.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/functions2.php b/include/functions2.php
index 76d92920c..d490ae50c 100644
--- a/include/functions2.php
+++ b/include/functions2.php
@@ -914,7 +914,7 @@
$cached_filename = CACHE_DIR . '/images/' . sha1($src) . $extension;
if (file_exists($cached_filename)) {
- $src = SELF_URL_PATH . '/public.php?op=cached_image&hash=' . sha1($src) . $extension;
+ $src = get_self_url_prefix() . '/public.php?op=cached_image&hash=' . sha1($src) . $extension;
if ($entry->hasAttribute('srcset')) {
$entry->removeAttribute('srcset');