]> _ Git - odl.git/commitdiff
wip #5194 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 29 Mar 2022 18:24:38 +0000 (20:24 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 29 Mar 2022 18:24:38 +0000 (20:24 +0200)
app/Http/Controllers/Tools/FluidbookDownload.php
app/Jobs/ProducePackage.php

index 51f570e20c3ca6e47fce49e4cf4388ba2c4433bc..c4d7c9fec4713d0fdfe4f99473d82c0467efc7f6 100644 (file)
@@ -12,6 +12,6 @@ trait FluidbookDownload
         //ProcessFluidbook::dispatchSync();
         $p = storage_path('fluidbook.zip');
         Zip::archive(storage_path('fluidbook/out'), $p);
-        return response(null)->header('Content-Disposition', 'attachment;filename=package.zip')->header('Content-Type', Files::_getMimeType($p))->header('X-Sendfile', $p);
+        return response(null)->header('Content-Disposition', 'attachment;filename=package_' . date('YmdHis', filemtime($p)) . '.zip')->header('Content-Type', Files::_getMimeType($p))->header('X-Sendfile', $p);
     }
 }
index 4df56412fa577780fbe4e619269a51a05d0fc272..1282009cb2cb21ba99898332c994e6081ccc4731 100644 (file)
@@ -12,7 +12,6 @@ use Illuminate\Contracts\Queue\ShouldQueue;
 use Illuminate\Foundation\Bus\Dispatchable;
 use Illuminate\Queue\InteractsWithQueue;
 use Illuminate\Queue\SerializesModels;
-use Illuminate\Support\Facades\Artisan;
 use Illuminate\View\View;
 
 class ProducePackage implements ShouldQueue, ShouldBeUnique
@@ -104,7 +103,6 @@ class ProducePackage implements ShouldQueue, ShouldBeUnique
     {
         ProcessFluidbook::dispatchSync();
         SearchIndex::dispatchSync();
-        //Artisan::call('media-library:regenerate --only-missing');
     }