mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 22:45:56 +00:00
remove ob_clean/flush shit as unneeded hacks from cached image output routines
This commit is contained in:
@@ -41,8 +41,6 @@
|
|||||||
header("Content-type: image/png");
|
header("Content-type: image/png");
|
||||||
$stamp = gmdate("D, d M Y H:i:s", filemtime($filename)). " GMT";
|
$stamp = gmdate("D, d M Y H:i:s", filemtime($filename)). " GMT";
|
||||||
header("Last-Modified: $stamp", true);
|
header("Last-Modified: $stamp", true);
|
||||||
ob_clean(); // discard any data in the output buffer (if possible)
|
|
||||||
flush(); // flush headers (if possible)
|
|
||||||
readfile($filename);
|
readfile($filename);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -62,8 +62,6 @@ class Cache_Starred_Images extends Plugin {
|
|||||||
header("Content-type: image/png");
|
header("Content-type: image/png");
|
||||||
$stamp = gmdate("D, d M Y H:i:s", filemtime($filename)). " GMT";
|
$stamp = gmdate("D, d M Y H:i:s", filemtime($filename)). " GMT";
|
||||||
header("Last-Modified: $stamp", true);
|
header("Last-Modified: $stamp", true);
|
||||||
ob_clean(); // discard any data in the output buffer (if possible)
|
|
||||||
flush(); // flush headers (if possible)
|
|
||||||
readfile($filename);
|
readfile($filename);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user