aboutsummaryrefslogtreecommitdiffstats
path: root/include/category_cats.inc.php
diff options
context:
space:
mode:
authormistic100 <mistic@piwigo.org>2014-06-02 07:55:46 +0000
committermistic100 <mistic@piwigo.org>2014-06-02 07:55:46 +0000
commit4bd32005b56f6ec741ceeed0a1745fe89f291085 (patch)
treee2ee9bb68d07822bb7c0122831a0ce313a5af2d2 /include/category_cats.inc.php
parentf98edc7a2e423bed534977107e4cb892180cb946 (diff)
feature 3010 : replace trigger_action/event by trigger_notify/change
git-svn-id: http://piwigo.org/svn/trunk@28587 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/category_cats.inc.php')
-rw-r--r--include/category_cats.inc.php12
1 files changed, 6 insertions, 6 deletions
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)
'<br>'
),
'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,