From: Vincent Vanwaelscappel Date: Wed, 7 Jun 2023 10:51:22 +0000 (+0200) Subject: wait #6002 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=0bfb90a61d388c9078be15c8e07c3cdcf10293fa;p=cubist_util.git wait #6002 @0.25 --- diff --git a/src/Graphics/Image.php b/src/Graphics/Image.php index baba4a7..09c7053 100644 --- a/src/Graphics/Image.php +++ b/src/Graphics/Image.php @@ -119,6 +119,9 @@ class Image if (file_exists($fixed) && filemtime($fixed) >= filemtime($source)) { return $fixed; } + if(file_exists($fixed) && is_link($fixed)){ + unlink($fixed); + } $svg = simplexml_load_string(file_get_contents($source)); if (!$svg) { copy($source, $fixed);