thumb: output results of existing target
authorMischa POSLAWSKY <perl@shiar.org>
Sun, 8 Jul 2018 01:46:03 +0000 (03:46 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Mon, 9 Jul 2018 23:52:57 +0000 (01:52 +0200)
In case the script gets called instead of httpd/file cache, the found target
should still be returned.  Broken since commit v3.2-15-gf08646f0f4 (2018-07-07)
[thumb: decide on cache location in mkthumb()].

thumb/index.php

index 1d369488c927b78399d9a2e208559286a109c595..d662b5ffa2f26a29cd4620f294e56c11fddaff40 100644 (file)
@@ -41,7 +41,7 @@ function mkthumb($source, $width, $height)
                $backend = $_GET['backend'];
        }
        elseif (file_exists($target)) {
-               return;
+               return $target;
        }
        elseif (extension_loaded('gd')) {
                $backend = 'gd';