Changeset 9997 for extensions/regenerateThumbnails
- Timestamp:
- Apr 2, 2011, 7:57:27 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/regenerateThumbnails/ws_functions.inc.php
r9934 r9997 27 27 28 28 $query=' 29 SELECT id, path 29 SELECT id, path, tn_ext 30 30 FROM '.IMAGES_TABLE.' 31 31 WHERE id = '.(int)$params['image_id'].' … … 42 42 if (!$params['square']) 43 43 remove_event_handler('upload_thumbnail_resize', 'upload_square_resize', 40); 44 45 trigger_event(46 'upload_thumbnail_resize',47 false,48 $image['path'],49 file_path_for_type($image['path'], 'thumb'),50 $params['maxwidth'],51 $params['maxheight'],52 $params['quality'],53 true54 );55 44 56 return true; 45 if (!empty( $image['tn_ext'] )) 46 { 47 trigger_event( 48 'upload_thumbnail_resize', 49 false, 50 $image['path'], 51 get_thumbnail_path($image), 52 $params['maxwidth'], 53 $params['maxheight'], 54 $params['quality'], 55 true 56 ); 57 58 return true; 59 } 60 return false; 57 61 } 58 62
Note: See TracChangeset
for help on using the changeset viewer.