aboutsummaryrefslogtreecommitdiffstats
path: root/include/category_default.inc.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2012-07-24 20:34:52 +0000
committerrvelices <rv-github@modusoptimus.com>2012-07-24 20:34:52 +0000
commit9571cf5e45a53859b160b8604f7df99dd8c103d1 (patch)
tree9d23ead00abf324da6670b6b42b1513bf010e920 /include/category_default.inc.php
parent81e869eaa0f9df8f138f4c837099b0f624e93bef (diff)
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
Diffstat (limited to 'include/category_default.inc.php')
-rw-r--r--include/category_default.inc.php6
1 files changed, 2 insertions, 4 deletions
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