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_cats.inc.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'include/category_cats.inc.php') diff --git a/include/category_cats.inc.php b/include/category_cats.inc.php index 839a86c8f..2e90a9441 100644 --- a/include/category_cats.inc.php +++ b/include/category_cats.inc.php @@ -269,7 +269,7 @@ if (count($categories) > 0) $template->set_filename('index_category_thumbnails', 'mainpage_categories.tpl'); - trigger_action('loc_begin_index_category_thumbnails', $categories); + trigger_notify('loc_begin_index_category_thumbnails', $categories); $tpl_thumbnails_var = array(); @@ -280,7 +280,7 @@ if (count($categories) > 0) continue; } - $category['name'] = trigger_event( + $category['name'] = trigger_change( 'render_category_name', $category['name'], 'subcatify_category_name' @@ -316,8 +316,8 @@ if (count($categories) > 0) '
' ), 'DESCRIPTION' => - trigger_event('render_category_literal_description', - trigger_event('render_category_description', + trigger_change('render_category_literal_description', + trigger_change('render_category_description', @$category['comment'], 'subcatify_category_description')), 'NAME' => $name, @@ -367,8 +367,8 @@ if (count($categories) > 0) $conf['nb_categories_page'] ); - $derivative_params = trigger_event('get_index_album_derivative_params', ImageStdParams::get_by_type(IMG_THUMB) ); - $tpl_thumbnails_var_selection = trigger_event('loc_end_index_category_thumbnails', $tpl_thumbnails_var_selection); + $derivative_params = trigger_change('get_index_album_derivative_params', ImageStdParams::get_by_type(IMG_THUMB) ); + $tpl_thumbnails_var_selection = trigger_change('loc_end_index_category_thumbnails', $tpl_thumbnails_var_selection); $template->assign( array( 'maxRequests' =>$conf['max_requests'], 'category_thumbnails' => $tpl_thumbnails_var_selection, -- cgit v1.2.3