fix issue with spamming logging files when loading cached thumbnail
This commit is contained in:
parent
a8ae2f10b9
commit
bdb96b9af8
1 changed files with 3 additions and 1 deletions
|
@ -403,7 +403,9 @@ class Preview {
|
|||
$cached = $this->isCached();
|
||||
|
||||
if ($cached) {
|
||||
$image = new \OC_Image($this->userView->file_get_contents($cached, 'r'));
|
||||
$stream = $this->userView->fopen($cached, 'r');
|
||||
$image = new \OC_Image();
|
||||
$image->loadFromFileHandle($stream);
|
||||
$this->preview = $image->valid() ? $image : null;
|
||||
$this->resizeAndCrop();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue