]> git.wh0rd.org Git - tt-rss.git/commitdiff
remove ob_clean/flush shit as unneeded hacks from cached image output routines
authorAndrew Dolgov <noreply@fakecake.org>
Thu, 21 Aug 2014 09:20:23 +0000 (13:20 +0400)
committerAndrew Dolgov <noreply@fakecake.org>
Thu, 21 Aug 2014 09:20:23 +0000 (13:20 +0400)
image.php
plugins/cache_starred_images/init.php

index a134e658e88c4a6b28e1c4b5f05d39e55c899f13..dcc7d806d406ec3f3c2beb07839c65e39b88ca2c 100644 (file)
--- a/image.php
+++ b/image.php
@@ -41,8 +41,6 @@
                                header("Content-type: image/png");
                                $stamp = gmdate("D, d M Y H:i:s", filemtime($filename)). " GMT";
                                header("Last-Modified: $stamp", true);
-                               ob_clean();   // discard any data in the output buffer (if possible)
-                               flush();      // flush headers (if possible)
                                readfile($filename);
                        }
                } else {
index 6e62bde768edcb64cb0654c4d75bdf266c87218f..4e5f2d4f70765547f6a72c79f6deac9a02cb45a4 100644 (file)
@@ -62,8 +62,6 @@ class Cache_Starred_Images extends Plugin {
                                        header("Content-type: image/png");
                                        $stamp = gmdate("D, d M Y H:i:s", filemtime($filename)). " GMT";
                                        header("Last-Modified: $stamp", true);
-                                       ob_clean();   // discard any data in the output buffer (if possible)
-                                       flush();      // flush headers (if possible)
                                        readfile($filename);
                                }
                        } else {