Merge pull request #19268 from owncloud/revert-18911

Revert "Show cached previews directly"
This commit is contained in:
Robin Appelman 2015-09-22 16:05:38 +02:00
commit 498e8f712c
1 changed files with 0 additions and 6 deletions

View File

@ -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();
}