From 9c741da4e85b419268729e0360d1c4e3f2bd7cf9 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Tue, 9 Mar 2021 17:27:55 +0200 Subject: [PATCH] fix image --- application/Espo/EntryPoints/Image.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/Espo/EntryPoints/Image.php b/application/Espo/EntryPoints/Image.php index 1d7aae5d12..0acbf0b434 100644 --- a/application/Espo/EntryPoints/Image.php +++ b/application/Espo/EntryPoints/Image.php @@ -184,7 +184,7 @@ class Image implements EntryPoint $cacheFilePath = "data/upload/thumbs/{$sourceId}_{$size}"; if ($useCache && $this->fileManager->isFile($cacheFilePath)) { - return $cacheFilePath; + return $this->fileManager->getContents($cacheFilePath); } $filePath = $this->entityManager->getRepository('Attachment')->getFilePath($attachment);