Changeset 21551
- Timestamp:
- Mar 14, 2013, 6:06:16 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/GThumb/main.inc.php
r18124 r21551 26 26 } 27 27 28 add_event_handler('loc_begin_index', 'GThumb_init', 60); 28 add_event_handler('init', 'GThumb_init'); 29 add_event_handler('loc_begin_index', 'GThumb_index', 60); 29 30 add_event_handler('loc_end_index', 'GThumb_remove_thumb_size'); 30 31 add_event_handler('get_admin_plugin_menu_links', 'GThumb_admin_menu'); … … 32 33 function GThumb_init() 33 34 { 34 global $conf, $user, $page , $template;35 global $conf, $user, $page; 35 36 36 37 // new param in 2.4.c … … 40 41 conf_update_param('GThumb', serialize($conf['GThumb'])); 41 42 } 42 43 44 $template->set_prefilter('index', 'GThumb_prefilter');45 46 add_event_handler('loc_end_index_thumbnails', 'process_GThumb', 50, 2);47 43 48 44 $user['nb_image_page'] = $conf['GThumb']['nb_image_page']; 49 45 $page['nb_image_page'] = $conf['GThumb']['nb_image_page']; 50 46 $conf['show_thumbnail_caption'] = $conf['GThumb']['show_thumbnail_caption']; 47 } 48 49 function GThumb_index() 50 { 51 global $template; 52 53 $template->set_prefilter('index', 'GThumb_prefilter'); 54 55 add_event_handler('loc_end_index_thumbnails', 'process_GThumb', 50, 2); 51 56 } 52 57
Note: See TracChangeset
for help on using the changeset viewer.