Changeset 29943


Ignore:
Timestamp:
Oct 9, 2014, 11:18:58 AM (10 years ago)
Author:
JanisV
Message:

Improve checking global enabling slideshow

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Fotorama/main.inc.php

    r29928 r29943  
    2525else
    2626{
    27   add_event_handler('loc_end_picture', 'Fotorama_end_picture');
    28   add_event_handler('loc_end_page_header', 'Fotorama_end_page_header');
     27  if ($conf['light_slideshow'])
     28  {
     29    add_event_handler('loc_end_picture', 'Fotorama_end_picture');
     30    add_event_handler('loc_end_page_header', 'Fotorama_end_page_header');
     31  }
    2932}
    3033
     
    8891  }
    8992 
    90   if ($page['slideshow'] and $conf['light_slideshow'])
     93  if ($page['slideshow'])
    9194  {
    9295    $query = '
     
    100103
    101104    $current = $template->get_template_vars('current');
     105    print_r($current);
    102106    $type = $current['selected_derivative']->get_type();
    103107    $defined = ImageStdParams::get_defined_type_map();
     
    198202  }
    199203
    200   if (isset($page['slideshow']) and $page['slideshow'] and $conf['light_slideshow'])
     204  if (isset($page['slideshow']) and $page['slideshow'])
    201205  {
    202206    $template->clear_assign('page_refresh');
Note: See TracChangeset for help on using the changeset viewer.