]> _ Git - cubist_util.git/commitdiff
wait #6002 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 7 Jun 2023 10:51:22 +0000 (12:51 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 7 Jun 2023 10:51:22 +0000 (12:51 +0200)
src/Graphics/Image.php

index baba4a780fc76ac524e090ab5a552fe2433caf15..09c70536ca5a64a5a2bac31ffcd69809939c37ec 100644 (file)
@@ -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);