Merge pull request #19268 from owncloud/revert-18911
Revert "Show cached previews directly"
This commit is contained in:
commit
498e8f712c
|
@ -772,12 +772,6 @@ class Preview {
|
||||||
throw new NotFoundException('File not found.');
|
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)) {
|
if (is_null($this->preview)) {
|
||||||
$this->getPreview();
|
$this->getPreview();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue