Browse Source

Использование Config::get(PATH_WEB_ROOT) при создании варианта изображения в Upload.

master
Alexander Demidov 11 years ago
parent
commit
407339fc4a
  1. 2
      Upload.class.php

2
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);

Loading…
Cancel
Save