ТОДО насчет логики $important_create и $force_create
MIRSPORTA-1112 Новый формат фото одежды и лыж
This commit is contained in:
1
File.php
1
File.php
@ -91,6 +91,7 @@ abstract class File
|
||||
*/
|
||||
if (!array_key_exists($size, $this->variants) || $important_create) {
|
||||
$original_file_path = \Majestic\Config::get('PATH_WEB_ROOT') . '/' . $this->getWebName();
|
||||
//TODO:Сложно понять логику этого выражения
|
||||
if (($important_create && $this->getIsNoEmpty() && file_exists($original_file_path)) || ($force_create && $this->getIsNoEmpty() && file_exists($original_file_path))) {
|
||||
Upload::imageVariant($this, $size);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user