From 407339fc4aca97fe3939afde44da5389e1731f07 Mon Sep 17 00:00:00 2001 From: Alexander Demidov Date: Fri, 4 Oct 2013 17:32:33 +0400 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D0=BE=D0=BB=D1=8C=D0=B7?= =?UTF-8?q?=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5=20Config::get(PATH=5FWEB?= =?UTF-8?q?=5FROOT)=20=D0=BF=D1=80=D0=B8=20=D1=81=D0=BE=D0=B7=D0=B4=D0=B0?= =?UTF-8?q?=D0=BD=D0=B8=D0=B8=20=D0=B2=D0=B0=D1=80=D0=B8=D0=B0=D0=BD=D1=82?= =?UTF-8?q?=D0=B0=20=D0=B8=D0=B7=D0=BE=D0=B1=D1=80=D0=B0=D0=B6=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D1=8F=20=D0=B2=20Upload.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Upload.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Upload.class.php b/Upload.class.php index 2c59f51..35483e9 100644 --- a/Upload.class.php +++ b/Upload.class.php @@ -56,7 +56,7 @@ abstract class Upload { $image_variant = new ImageVariant(); if (is_null($greagwar_image)) { - $greagwar_image = self::getGreagwarImage($image->path . DIRECTORY_SEPARATOR . $image->filename); + $greagwar_image = self::getGreagwarImage(Config::get('PATH_WEB_ROOT') . DIRECTORY_SEPARATOR . $image->path . DIRECTORY_SEPARATOR . $image->filename); } $size_parts = explode('x', $size); self::saveImage($image_variant, $greagwar_image, $size_parts[0] ? : null, $size_parts[1] ? : null);