]> _ Git - fluidbook-toolbox.git/commitdiff
wip #7423 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 23 Apr 2025 15:16:29 +0000 (17:16 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 23 Apr 2025 15:16:29 +0000 (17:16 +0200)
app/Http/Controllers/Admin/Operations/FluidbookPublication/Services/PumaOperation.php

index ef05696a7528f9f558c8c2bf3046fcb5ea45ff0e..9ad72a0052a19c85407e2a31aa53885b6d01ebd3 100644 (file)
@@ -75,7 +75,7 @@ trait PumaOperation
                 $html .= '<div class="products">';
                 foreach ($sub as $reference => $product) {
                     if (isset($product['zoom_image'])) {
-                        $f = protected_path('fluidbookpublication/cache/zoomarea/zoomarea/books/32281/' . $product['zoom_image']);
+                        $f = protected_path('fluidbookpublication/cache/zoomarea/zoomarea/books/' . $id . '/' . $product['zoom_image']);
                         $img = Files::asDataURI($f);
                     } else {
                         $img = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+P+/HgAFhAJ/wlseKgAAAABJRU5ErkJggg==';