From: Vincent Vanwaelscappel Date: Wed, 14 Jan 2026 13:30:22 +0000 (+0100) Subject: #7898 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=19cb52ec5fb61aaf6ead2db70b6a36257f2aec4f;p=fluidbook-toolbox.git #7898 --- diff --git a/app/Fluidbook/Compiler/Cart.php b/app/Fluidbook/Compiler/Cart.php index f41a2e48b..71782f117 100644 --- a/app/Fluidbook/Compiler/Cart.php +++ b/app/Fluidbook/Compiler/Cart.php @@ -897,17 +897,7 @@ trait Cart $references = []; foreach ($refs as $ref => $data) { - $references[$ref] = ['reference' => $ref, 'name' => $data['Désignation']]; - if ($data['Image']) { - $dest = $this->wdir . 'commerce/' . $ref . '.jpg'; - try { - if (!file_exists($dest) || filemtime($dest) < URL::mtime($data['Image'])) { - copy($data['Image'], $dest); - } - }catch (\Exception $e) { - - } - } + $references[$ref] = ['reference' => $ref, 'name' => $data['Désignation'], 'image' => $data['Image']]; } $this->config->basketReferences = $references;