1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 18:35:57 +00:00

remove image.php; put cached image endpoint to public.php

This commit is contained in:
Andrew Dolgov
2015-02-27 14:51:26 +03:00
parent 95ebe737bd
commit 0c6f7b314a
4 changed files with 32 additions and 61 deletions

View File

@@ -900,7 +900,7 @@
$cached_filename = CACHE_DIR . '/images/' . sha1($src) . '.png';
if (file_exists($cached_filename)) {
$src = SELF_URL_PATH . '/image.php?hash=' . sha1($src);
$src = SELF_URL_PATH . '/public.php?op=cached_image&hash=' . sha1($src);
}
$entry->setAttribute('src', $src);