]> git.wh0rd.org Git - tt-rss.git/commitdiff
use get_self_url_prefix() when rewriting cached images
authorAndrew Dolgov <noreply@madoka.volgo-balt.ru>
Fri, 10 Feb 2017 12:14:47 +0000 (15:14 +0300)
committerAndrew Dolgov <noreply@madoka.volgo-balt.ru>
Fri, 10 Feb 2017 12:14:47 +0000 (15:14 +0300)
include/functions2.php

index 76d92920cccb0b1fbbfbf0c590b248f96673df86..d490ae50c74c286e4e23cff3795a3847748eb7bc 100644 (file)
                                $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');