From 618adfef72abdf14e1706eb00c9c3fecff3d94d1 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Tue, 29 Mar 2022 19:58:57 +0200 Subject: [PATCH] wip #5194 @0.25 --- app/Jobs/ProducePackage.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Jobs/ProducePackage.php b/app/Jobs/ProducePackage.php index adfbe82..4df5641 100644 --- a/app/Jobs/ProducePackage.php +++ b/app/Jobs/ProducePackage.php @@ -3,6 +3,7 @@ namespace App\Jobs; use App\Http\Controllers\FrontController; +use App\Models\Settings; use Cubist\Util\Files\VirtualDirectory; use Cubist\Util\Zip; use Illuminate\Bus\Queueable; @@ -45,6 +46,7 @@ class ProducePackage implements ShouldQueue, ShouldBeUnique } $frontController = new FrontController(); + $this->vdir->file_put_contents('settings.xml', Settings::find('1')->settings_xml); $this->vdir->file_put_contents('index.html', $this->_render($frontController->splash())); $this->vdir->file_put_contents('accueil.html', $this->_render($frontController->home())); $this->vdir->file_put_contents('mediatheque.html', $this->_render($frontController->medialibrary())); -- 2.39.5