Browse Source

define image sizes in saveImage method

master
Alexander Demidov 11 years ago
parent
commit
290fba2aaf
  1. 1
      Upload.class.php

1
Upload.class.php

@ -151,6 +151,7 @@ abstract class Upload
$path_parts = pathinfo($file_path); $path_parts = pathinfo($file_path);
$image->path = preg_replace('#^' . Config::get('PATH_WEB_ROOT') . '/#', '', $path_parts['dirname']); $image->path = preg_replace('#^' . 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);
} }

Loading…
Cancel
Save