Browse Source

ТОДО насчет логики $important_create и $force_create

MIRSPORTA-1112 Новый формат фото одежды и лыж
master
Alexander Demidov 8 years ago
parent
commit
d8f6d70d2e
  1. 1
      File.php

1
File.php

@ -91,6 +91,7 @@ abstract class File
*/ */
if (!array_key_exists($size, $this->variants) || $important_create) { if (!array_key_exists($size, $this->variants) || $important_create) {
$original_file_path = \Majestic\Config::get('PATH_WEB_ROOT') . '/' . $this->getWebName(); $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))) { if (($important_create && $this->getIsNoEmpty() && file_exists($original_file_path)) || ($force_create && $this->getIsNoEmpty() && file_exists($original_file_path))) {
Upload::imageVariant($this, $size); Upload::imageVariant($this, $size);
} else { } else {

Loading…
Cancel
Save