mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-01 05:55:02 +03:00
Media fix #705
This commit is contained in:
parent
49ad5beb36
commit
3508ca01a7
|
@ -908,7 +908,7 @@ class ModuleMedia extends ModuleORM
|
||||||
/**
|
/**
|
||||||
* Проверяем необходимость автоматического создания превью нужного размера - если разрешено настройками и файл НЕ существует
|
* Проверяем необходимость автоматического создания превью нужного размера - если разрешено настройками и файл НЕ существует
|
||||||
*/
|
*/
|
||||||
if ($this->GetConfigParam('image.autoresize',
|
if ($sSize and $this->GetConfigParam('image.autoresize',
|
||||||
$oMedia->getTargetType()) and !$this->Image_IsExistsFile($this->GetImagePathBySize($oMedia->getFilePath(),
|
$oMedia->getTargetType()) and !$this->Image_IsExistsFile($this->GetImagePathBySize($oMedia->getFilePath(),
|
||||||
$sSize))
|
$sSize))
|
||||||
) {
|
) {
|
||||||
|
|
Loading…
Reference in a new issue