define image sizes in saveImage method

This commit is contained in:
2014-07-23 19:18:58 +04:00
parent 57d7ae3187
commit b607c6f8e8

View File

@ -152,6 +152,7 @@ abstract class Upload
$path_parts = pathinfo($file_path); $path_parts = pathinfo($file_path);
$image->path = preg_replace('#^' . \Majestic\Config::get('PATH_WEB_ROOT') . '/#', '', $path_parts['dirname']); $image->path = preg_replace('#^' . \Majestic\Config::get('PATH_WEB_ROOT') . '/#', '', $path_parts['dirname']);
$image->filename = $path_parts['basename']; $image->filename = $path_parts['basename'];
self::defineSizeWidthAndHeight($image);
unset($greagwar_image); unset($greagwar_image);
} }