aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2015-09-22 16:05:38 +0200
committerRobin Appelman <robin@icewind.nl>2015-09-22 16:05:38 +0200
commit498e8f712c3512a7e8b054194f82611fae931353 (patch)
tree2def597ab1c371ca4b902b5f7762468dbfd56499 /lib
parent0c93de5a650c8ca95bc223a0cece05f4d6b765df (diff)
parentd9db959331faddfa58c6b023bd2383cb60f60655 (diff)
downloadnextcloud-server-498e8f712c3512a7e8b054194f82611fae931353.tar.gz
nextcloud-server-498e8f712c3512a7e8b054194f82611fae931353.zip
Merge pull request #19268 from owncloud/revert-18911
Revert "Show cached previews directly"
Diffstat (limited to 'lib')
-rw-r--r--lib/private/preview.php6
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();
}