From: Vincent Vanwaelscappel Date: Tue, 29 Mar 2022 12:21:21 +0000 (+0200) Subject: wip #5184 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=b383d2e666c61d55b629439481c03139955b5112;p=odl.git wip #5184 --- diff --git a/app/Jobs/ProcessFluidbook.php b/app/Jobs/ProcessFluidbook.php index fa9bf72..7acc03f 100644 --- a/app/Jobs/ProcessFluidbook.php +++ b/app/Jobs/ProcessFluidbook.php @@ -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);