]> _ Git - odl.git/commitdiff
wip #5184
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 29 Mar 2022 12:21:21 +0000 (14:21 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 29 Mar 2022 12:21:21 +0000 (14:21 +0200)
app/Jobs/ProcessFluidbook.php

index fa9bf72bbf59c9586c3027be4b7e411a8a826ade..7acc03f2bb3762a53703453a5338e23423a4c458 100644 (file)
@@ -52,7 +52,7 @@ class ProcessFluidbook extends Compiler
         $spl = new \SplFileInfo($path);
         $fname = $spl->getFilename();
         if (file_exists($path)) {
-            copy($path, $this->wdir . $fname);
+            Files::copyFile($path, $this->wdir . $fname);
         }
 
         if (stripos($path, '.mp4') !== false) {
@@ -61,7 +61,7 @@ class ProcessFluidbook extends Compiler
             $poster = $posterMedia->getPath('poster');
             if (file_exists($poster)) {
                 $dest = $this->wdir . str_replace('.mp4', '.jpg', $fname);
-                copy($poster, $dest);
+                Files::copyFile($poster, $dest);
             }
         }
 
@@ -117,7 +117,7 @@ class ProcessFluidbook extends Compiler
             /** @var $item Media */
             $dest = $tmp . '/' . Files::getFilename($path);
             if (file_exists($path)) {
-                copy($path, $dest);
+                Files::copyFile($path, $dest);
             }
         }
         Zip::archive($tmp, $zip);