aboutsummaryrefslogtreecommitdiffstats
path: root/include/category_default.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/category_default.inc.php')
-rw-r--r--include/category_default.inc.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/category_default.inc.php b/include/category_default.inc.php
index 192fcb7d2..6106ccb55 100644
--- a/include/category_default.inc.php
+++ b/include/category_default.inc.php
@@ -35,7 +35,7 @@ $selection = array_slice(
$page['nb_image_page']
);
-$selection = trigger_event('loc_index_thumbnails_selection', $selection);
+$selection = trigger_change('loc_index_thumbnails_selection', $selection);
if (count($selection) > 0)
{
@@ -91,7 +91,7 @@ SELECT image_id, COUNT(*) AS nb_comments
// template thumbnail initialization
$template->set_filenames( array( 'index_thumbnails' => 'thumbnails.tpl',));
-trigger_action('loc_begin_index_thumbnails', $pictures);
+trigger_notify('loc_begin_index_thumbnails', $pictures);
$tpl_thumbnails_var = array();
foreach ($pictures as $row)
@@ -152,11 +152,11 @@ foreach ($pictures as $row)
}
$template->assign( array(
- 'derivative_params' => trigger_event('get_index_derivative_params', ImageStdParams::get_by_type( pwg_get_session_var('index_deriv', IMG_THUMB) ) ),
+ 'derivative_params' => trigger_change('get_index_derivative_params', ImageStdParams::get_by_type( pwg_get_session_var('index_deriv', IMG_THUMB) ) ),
'maxRequests' =>$conf['max_requests'],
'SHOW_THUMBNAIL_CAPTION' =>$conf['show_thumbnail_caption'],
) );
-$tpl_thumbnails_var = trigger_event('loc_end_index_thumbnails', $tpl_thumbnails_var, $pictures);
+$tpl_thumbnails_var = trigger_change('loc_end_index_thumbnails', $tpl_thumbnails_var, $pictures);
$template->assign('thumbnails', $tpl_thumbnails_var);
$template->assign_var_from_handle('THUMBNAILS', 'index_thumbnails');