From: Vincent Vanwaelscappel Date: Tue, 16 Jul 2024 17:14:48 +0000 (+0200) Subject: wait #7007 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=29bf5a040c01a278334a445f54c521621f91e801;p=fluidbook-toolbox.git wait #7007 @0.5 --- diff --git a/app/Fluidbook/Compiler/Images.php b/app/Fluidbook/Compiler/Images.php index 0a0c3a6c1..6e657a3bf 100644 --- a/app/Fluidbook/Compiler/Images.php +++ b/app/Fluidbook/Compiler/Images.php @@ -133,6 +133,9 @@ trait Images protected function _makeCover($orig) { $cached = $this->wdir . '/_cover.jpg'; + if (is_link($cached)) { + unlink($cached); + } if (!file_exists($cached) || filemtime($cached) < filemtime($orig)) { $size = Image::getimagesize($orig);