From d9db959331faddfa58c6b023bd2383cb60f60655 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Tue, 22 Sep 2015 15:01:31 +0200 Subject: Revert "Show cached previews directly" This reverts commit 1b708e26efbcb4052becad3d7b6618064c2605a6. --- lib/private/preview.php | 6 ------ 1 file changed, 6 deletions(-) (limited to 'lib') 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(); } -- cgit v1.2.3