Changeset 27035 for extensions/Fotorama


Ignore:
Timestamp:
Jan 29, 2014, 10:08:09 AM (10 years ago)
Author:
JanisV
Message:

Fixed clearing data for non-slideshow pages

File:
1 edited

Legend:

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

    r27034 r27035  
    2626function Fotorama_end_picture()
    2727{
    28   global $template, $conf, $user, $page, $refresh;
     28  global $template, $conf, $user, $page;
    2929
    3030  if ($page['slideshow'] and $conf['light_slideshow'])
     
    100100function Fotorama_end_page_header()
    101101{
    102   global $template;
     102  global $template, $conf, $page;
    103103
    104   $template->clear_assign('page_refresh');
    105   $template->clear_assign('first');
    106   $template->clear_assign('previous');
    107   $template->clear_assign('next');
    108   $template->clear_assign('last');
     104  if (isset($page['slideshow']) and $page['slideshow'] and $conf['light_slideshow'])
     105  {
     106    $template->clear_assign('page_refresh');
     107    $template->clear_assign('first');
     108    $template->clear_assign('previous');
     109    $template->clear_assign('next');
     110    $template->clear_assign('last');
     111  }
    109112}
    110113
Note: See TracChangeset for help on using the changeset viewer.