Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Image thumbnails haven't been prefixed with "thumb_" since EE 2.1

  • Loading branch information...
commit e48fd231e71583a21f77a6fdf715870f39049b71 1 parent 7dea257
@brandonkelly brandonkelly authored
Showing with 9 additions and 4 deletions.
  1. +9 −4 ee2/third_party/matrix_multi_upload/mcp.matrix_multi_upload.php
View
13 ee2/third_party/matrix_multi_upload/mcp.matrix_multi_upload.php
@@ -227,10 +227,15 @@ function upload()
// upload sucessful, now create thumb
$thumb_path = $path.'_thumbs';
- //$thumb_name = 'thumb_'.$file_name;
- //the above line was causing issues for previous users of MMU, a hack was introduced by the community
- //implementing hack
- $thumb_name = ''.$file_name;
+
+ if (version_compare(APP_VER, '2.1.5', '>='))
+ {
+ $thumb_name = $file_name;
+ }
+ else
+ {
+ $thumb_name = 'thumb_'.$file_name;
+ }
$thumb_url = $upload_dir_prefs['url'];
if (substr($thumb_url, -1) != '/') $thumb_url .= '/';
Please sign in to comment.
Something went wrong with that request. Please try again.