Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2019-12-18 11:19:06 +0300
committerGitHub <noreply@github.com>2019-12-18 11:19:06 +0300
commit34c48aaa92a7ca39b16abb3ce3c0416c757e87ea (patch)
treec523126396a7077746f3b2d3595011b04fae241c /lib
parent9fd94b7e052e94b7170a67046c424e99ca6107f4 (diff)
parent86dccffff94c063194838905bb59aedf51c954aa (diff)
Merge pull request #18456 from nextcloud/fix/office/previews
Fix Office preview generation
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Preview/Office.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Preview/Office.php b/lib/private/Preview/Office.php
index af6a2ef89f8..bdf8c528135 100644
--- a/lib/private/Preview/Office.php
+++ b/lib/private/Preview/Office.php
@@ -60,7 +60,7 @@ abstract class Office extends ProviderV2 {
$pngPreview = null;
try {
list($dirname, , , $filename) = array_values(pathinfo($absPath));
- $pngPreview = $dirname . '/' . $filename . '.png';
+ $pngPreview = $tmpDir . '/' . $filename . '.png';
$png = new \imagick($pngPreview . '[0]');
$png->setImageFormat('jpg');