diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-12-18 11:25:33 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-12-18 11:25:33 +0100 |
commit | a18c0983d5db32e98461404888200118f83011d7 (patch) | |
tree | 98bebd6795b86dc39cf1a3b14acb77b872bc2ae6 /lib/private/preview | |
parent | 90b0831cec88763038e241cc4816db204c045e69 (diff) | |
download | nextcloud-server-a18c0983d5db32e98461404888200118f83011d7.tar.gz nextcloud-server-a18c0983d5db32e98461404888200118f83011d7.zip |
Use TempManager instead of tmpFile
Diffstat (limited to 'lib/private/preview')
-rw-r--r-- | lib/private/preview/movie.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/preview/movie.php b/lib/private/preview/movie.php index f71eaaf3eb2..2c2e6d09399 100644 --- a/lib/private/preview/movie.php +++ b/lib/private/preview/movie.php @@ -46,7 +46,7 @@ class Movie extends Provider { if ($useFileDirectly) { $absPath = $fileview->getLocalFile($path); } else { - $absPath = \OC_Helper::tmpFile(); + $absPath = \OC::$server->getTempManager()->getTemporaryFile(); $handle = $fileview->fopen($path, 'rb'); @@ -79,7 +79,7 @@ class Movie extends Provider { * @return bool|\OCP\IImage */ private function generateThumbNail($maxX, $maxY, $absPath, $second) { - $tmpPath = \OC_Helper::tmpFile(); + $tmpPath = \OC::$server->getTempManager()->getTemporaryFile(); if (self::$avconvBinary) { $cmd = self::$avconvBinary . ' -an -y -ss ' . escapeshellarg($second) . |