Changeset 30029
- Timestamp:
- Oct 13, 2014, 1:16:50 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Fotorama/main.inc.php
r29981 r30029 27 27 if ($conf['light_slideshow']) 28 28 { 29 add_event_handler('render_element_content', 'Fotorama_element_content' );29 add_event_handler('render_element_content', 'Fotorama_element_content', EVENT_HANDLER_PRIORITY_NEUTRAL-10); 30 30 add_event_handler('loc_end_picture', 'Fotorama_end_picture'); 31 31 add_event_handler('loc_end_page_header', 'Fotorama_end_page_header'); … … 76 76 } 77 77 78 function Fotorama_element_content( )78 function Fotorama_element_content($content, $picture) 79 79 { 80 80 global $page; … … 84 84 $page['slideshow'] = true; 85 85 } 86 87 return $content; 86 88 } 87 89 … … 124 126 125 127 $current = $template->get_template_vars('current'); 126 $type = $current['selected_derivative']->get_type(); 128 if (isset($current['selected_derivative'])) 129 { 130 $type = $current['selected_derivative']->get_type(); 131 } 132 127 133 $defined = ImageStdParams::get_defined_type_map(); 128 if (!isset($ defined[$type]))134 if (!isset($type) or !isset($defined[$type])) 129 135 { 130 136 $type = pwg_get_session_var('picture_deriv', $conf['derivative_default_size']);
Note: See TracChangeset
for help on using the changeset viewer.