From: Vincent Vanwaelscappel Date: Thu, 6 Jan 2022 18:26:03 +0000 (+0100) Subject: wip #5005 @1 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=79397ac3ddb9662134e90e27a1efe21aae1b33d5;p=odl.git wip #5005 @1 --- diff --git a/app/Jobs/ProducePackage.php b/app/Jobs/ProducePackage.php index b1d230f..d98a0f7 100644 --- a/app/Jobs/ProducePackage.php +++ b/app/Jobs/ProducePackage.php @@ -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); }