|
@ -56,7 +56,7 @@ abstract class Upload |
|
|
{ |
|
|
{ |
|
|
$image_variant = new ImageVariant(); |
|
|
$image_variant = new ImageVariant(); |
|
|
if (is_null($greagwar_image)) { |
|
|
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); |
|
|
$size_parts = explode('x', $size); |
|
|
self::saveImage($image_variant, $greagwar_image, $size_parts[0] ? : null, $size_parts[1] ? : null); |
|
|
self::saveImage($image_variant, $greagwar_image, $size_parts[0] ? : null, $size_parts[1] ? : null); |
|
|