From 4bd32005b56f6ec741ceeed0a1745fe89f291085 Mon Sep 17 00:00:00 2001 From: mistic100 Date: Mon, 2 Jun 2014 07:55:46 +0000 Subject: feature 3010 : replace trigger_action/event by trigger_notify/change git-svn-id: http://piwigo.org/svn/trunk@28587 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/category_default.inc.php | 8 ++++---- 1 file changed, 4 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 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'); -- cgit v1.2.3