]> _ Git - fluidbook-toolbox.git/commitdiff
wait #7007 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 16 Jul 2024 17:14:48 +0000 (19:14 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 16 Jul 2024 17:14:48 +0000 (19:14 +0200)
app/Fluidbook/Compiler/Images.php

index 0a0c3a6c19b78094bf568560c55cb25a696f5162..6e657a3bfbad5aec138c9116e6cb022798b8cec8 100644 (file)
@@ -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);