diff options
author | Robin Appelman <icewind@owncloud.com> | 2015-09-22 15:01:31 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2015-09-22 15:01:31 +0200 |
commit | d9db959331faddfa58c6b023bd2383cb60f60655 (patch) | |
tree | 61db047ab602e388d64d9caf6d7dbfee1cd7966e /lib/private/preview.php | |
parent | 67231ed9a75eafe5b417e4525e3d80b1a3f8826b (diff) | |
download | nextcloud-server-d9db959331faddfa58c6b023bd2383cb60f60655.tar.gz nextcloud-server-d9db959331faddfa58c6b023bd2383cb60f60655.zip |
Revert "Show cached previews directly"
This reverts commit 1b708e26efbcb4052becad3d7b6618064c2605a6.
Diffstat (limited to 'lib/private/preview.php')
-rw-r--r-- | lib/private/preview.php | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/private/preview.php b/lib/private/preview.php index db2a56f9fa5..978da1161c2 100644 --- a/lib/private/preview.php +++ b/lib/private/preview.php @@ -772,12 +772,6 @@ class Preview { throw new NotFoundException('File not found.'); } - if ($cachedPath = $this->isCached($this->info->getId())) { - header('Content-Type: ' . $this->info->getMimetype()); - $this->userView->readfile($cachedPath); - return; - } - if (is_null($this->preview)) { $this->getPreview(); } |