Revert "Show cached previews directly"

This reverts commit 1b708e26ef.
remotes/origin/db-empty-migrate
Robin Appelman 2015-09-22 15:01:31 +07:00
parent 67231ed9a7
commit d9db959331
1 changed files with 0 additions and 6 deletions

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