diff --git a/File.php b/File.php index 72b1ee6..d31e242 100644 --- a/File.php +++ b/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 {