mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-16 04:05:58 +00:00
remove image.php; put cached image endpoint to public.php
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -1155,16 +1155,8 @@
|
||||
file_put_contents($local_filename, $file_content);
|
||||
}
|
||||
}
|
||||
|
||||
/* if (file_exists($local_filename)) {
|
||||
$entry->setAttribute('src', SELF_URL_PATH . '/image.php?url=' .
|
||||
base64_encode($src));
|
||||
} */
|
||||
}
|
||||
}
|
||||
|
||||
//$node = $doc->getElementsByTagName('body')->item(0);
|
||||
//return $doc->saveXML($node);
|
||||
}
|
||||
|
||||
function expire_error_log($debug) {
|
||||
|
||||
Reference in New Issue
Block a user