]> _ Git - odl.git/commitdiff
wip #5005 @1
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 6 Jan 2022 18:26:03 +0000 (19:26 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 6 Jan 2022 18:26:03 +0000 (19:26 +0100)
app/Jobs/ProducePackage.php

index b1d230f8bd77e08f9d2dfb6664ca322cf2e4d664..d98a0f7f50c8ae0dd1122bba9554a8ce4b7fb712 100644 (file)
@@ -77,16 +77,15 @@ class ProducePackage implements ShouldQueue, ShouldBeUnique {
         $replace = [
             'https://odl.paris.cubedesigners.com/front/' => './',
             'https://cube.odile.space/front/' => './',
+            'https://odl.paris.cubedesigners.com/storage/' => './storage/',
+            'https://cube.odile.space/storage/' => './storage/',
             'https://odl.paris.cubedesigners.com/' => './',
             'https://cube.odile.space/' => './',
             '/front/' => './',
             '\/storage' => '.\/storage',
             '/storage/' => './storage/',
         ];
-        $html = str_replace(array_keys($replace), array_values($replace), $html);
-
-
-        return $html;
+        return str_replace(array_keys($replace), array_values($replace), $html);
     }