From d8f6d70d2e3bb69701bc64bf8a15c77831adcde0 Mon Sep 17 00:00:00 2001 From: Alexander Demidov Date: Tue, 4 Oct 2016 15:19:18 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A2=D0=9E=D0=94=D0=9E=20=D0=BD=D0=B0=D1=81?= =?UTF-8?q?=D1=87=D0=B5=D1=82=20=D0=BB=D0=BE=D0=B3=D0=B8=D0=BA=D0=B8=20$im?= =?UTF-8?q?portant=5Fcreate=20=D0=B8=20$force=5Fcreate=20MIRSPORTA-1112=20?= =?UTF-8?q?=D0=9D=D0=BE=D0=B2=D1=8B=D0=B9=20=D1=84=D0=BE=D1=80=D0=BC=D0=B0?= =?UTF-8?q?=D1=82=20=D1=84=D0=BE=D1=82=D0=BE=20=D0=BE=D0=B4=D0=B5=D0=B6?= =?UTF-8?q?=D0=B4=D1=8B=20=D0=B8=20=D0=BB=D1=8B=D0=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- File.php | 1 + 1 file changed, 1 insertion(+) 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 {