From 9571cf5e45a53859b160b8604f7df99dd8c103d1 Mon Sep 17 00:00:00 2001 From: rvelices Date: Tue, 24 Jul 2012 20:34:52 +0000 Subject: refactor code when selected derivative on index page is changed by a plugin ... git-svn-id: http://piwigo.org/svn/trunk@16987 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/category_default.inc.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'include/category_default.inc.php') diff --git a/include/category_default.inc.php b/include/category_default.inc.php index 18ad85fb3..4c356a9ee 100644 --- a/include/category_default.inc.php +++ b/include/category_default.inc.php @@ -151,10 +151,8 @@ foreach ($pictures as $row) $tpl_thumbnails_var[] = $tpl_var; } -$derivative_params = trigger_event('get_index_derivative_params', ImageStdParams::get_by_type( pwg_get_session_var('index_deriv', IMG_THUMB) ) ); - $template->assign( array( - 'derivative_params' =>$derivative_params, + 'derivative_params' => trigger_event('get_index_derivative_params', ImageStdParams::get_by_type( pwg_get_session_var('index_deriv', IMG_THUMB) ) ), 'SHOW_THUMBNAIL_CAPTION' =>$conf['show_thumbnail_caption'], ) ); $tpl_thumbnails_var = trigger_event('loc_end_index_thumbnails', $tpl_thumbnails_var, $pictures); @@ -162,6 +160,6 @@ $template->assign('thumbnails', $tpl_thumbnails_var); $template->assign_var_from_handle('THUMBNAILS', 'index_thumbnails'); unset($pictures, $selection, $tpl_thumbnails_var); -$template->clear_assign( array('thumbnails', 'derivative_params') ); +$template->clear_assign( 'thumbnails' ); pwg_debug('end include/category_default.inc.php'); ?> \ No newline at end of file -- cgit v1.2.3