From: Alan Knowles Date: Mon, 24 May 2021 06:03:00 +0000 (+0800) Subject: fix serve only for non-thumbs X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=e5e8ac7f60902ae6ef415a0e8d6321765d8ba805 fix serve only for non-thumbs --- diff --git a/Images.php b/Images.php index bfda2826..884d88ab 100644 --- a/Images.php +++ b/Images.php @@ -297,6 +297,10 @@ class Pman_Core_Images extends Pman $this->as_mimetype = $img->mimetype; } if (!$this->thumb) { + if ($x->mimetype == $this->as_mimetype) { + $x->serveOnly($this->method); + exit; + } $x->convert( $this->as_mimetype); $x->serve($this->method); exit;