Ignore:
Timestamp:
Jul 24, 2012, 10:34:52 PM (12 years ago)
Author:
rvelices
Message:

refactor code when selected derivative on index page is changed by a plugin ...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/category_default.inc.php

    r13234 r16987  
    152152}
    153153
    154 $derivative_params = trigger_event('get_index_derivative_params', ImageStdParams::get_by_type( pwg_get_session_var('index_deriv', IMG_THUMB) ) );
    155 
    156154$template->assign( array(
    157   'derivative_params' =>$derivative_params,
     155  'derivative_params' => trigger_event('get_index_derivative_params', ImageStdParams::get_by_type( pwg_get_session_var('index_deriv', IMG_THUMB) ) ),
    158156  'SHOW_THUMBNAIL_CAPTION' =>$conf['show_thumbnail_caption'],
    159157    ) );
     
    163161$template->assign_var_from_handle('THUMBNAILS', 'index_thumbnails');
    164162unset($pictures, $selection, $tpl_thumbnails_var);
    165 $template->clear_assign( array('thumbnails', 'derivative_params') );
     163$template->clear_assign( 'thumbnails' );
    166164pwg_debug('end include/category_default.inc.php');
    167165?>
Note: See TracChangeset for help on using the changeset viewer.