mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 12:20:22 +00:00
Hotfix (will be included in v2.5.0 release): Don't break image loading when php-gd extension is not installed
This commit is contained in:
@@ -42,6 +42,11 @@ class FilesService extends BaseService
|
||||
$fileNameDownscaled = $fileNameWithoutExtension . '__downscaledto' . ($bestFitHeight ? $bestFitHeight : 'auto') . 'x' . ($bestFitWidth ? $bestFitWidth : 'auto') . '.' . $fileExtension;
|
||||
$filePathDownscaled = $this->GetFilePath($group, $fileNameDownscaled);
|
||||
|
||||
if (!extension_loaded('gd'))
|
||||
{
|
||||
return $filePath;
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
if (!file_exists($filePathDownscaled))
|
||||
|
Reference in New Issue
Block a user