fix image

This commit is contained in:
Yuri Kuznetsov
2021-03-09 17:27:55 +02:00
parent 2dfd43c8ba
commit 9c741da4e8
+1 -1
View File
@@ -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);