Changeset 12705 for extensions/GThumb/main.inc.php
- Timestamp:
- Dec 8, 2011, 5:19:34 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/GThumb/main.inc.php
r12678 r12705 19 19 20 20 add_event_handler('loc_begin_index', 'GThumb_init', 60); 21 add_event_handler('loc_end_index_thumbnails', 'process_GThumb', 50, 2); 21 22 add_event_handler('ws_add_methods', 'add_gthumb_thumbnails_method'); 22 23 add_event_handler('get_admin_plugin_menu_links', 'GThumb_admin_menu'); … … 31 32 $page['nb_image_page'] = $conf['GThumb']['nb_image_page']; 32 33 33 add_event_handler('loc_end_index_thumbnails', 'process_GThumb', 50, 2);34 35 34 if (is_dir(GTHUMB_CACHE_DIR) and !is_dir(GTHUMB_CACHE_DIR.'/'.$conf['GThumb']['height'])) 36 35 { … … 44 43 { 45 44 global $template, $conf; 45 46 if (isset($_GET['rvts'])) 47 { 48 $conf['GThumb']['big_thumb'] = false; 49 } 46 50 47 51 $template->set_filename( 'index_thumbnails', realpath(GTHUMB_PATH.'template/gthumb.tpl')); … … 137 141 138 142 $new_height = $size == 'small' ? $conf['GThumb']['height'] : $conf['GThumb']['height'] * 2 + $conf['GThumb']['margin']; 139 $file = GTHUMB_CACHE_DIR.'/'.$new_height.'/'.md5($picture['path'] ).'.'.$picture['tn_ext'];143 $file = GTHUMB_CACHE_DIR.'/'.$new_height.'/'.md5($picture['path'].(!empty($picture['md5sum']) ? $picture['md5sum'] : '')).'.'.$picture['tn_ext']; 140 144 141 145 if (file_exists($file))
Note: See TracChangeset
for help on using the changeset viewer.