aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_category.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/functions_category.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/functions_category.inc.php')
-rw-r--r--include/functions_category.inc.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/functions_category.inc.php b/include/functions_category.inc.php
index 74d3a077b..826ff9292 100644
--- a/include/functions_category.inc.php
+++ b/include/functions_category.inc.php
@@ -108,7 +108,7 @@ FROM '.CATEGORIES_TABLE.' INNER JOIN '.USER_CACHE_CATEGORIES_TABLE.'
);
}
- $where = trigger_event('get_categories_menu_sql_where',
+ $where = trigger_change('get_categories_menu_sql_where',
$where, $user['expand'], $filter['enabled'] );
$query.= '
@@ -123,7 +123,7 @@ WHERE '.$where.'
$child_date_last = @$row['max_date_last']> @$row['date_last'];
$row = array_merge($row,
array(
- 'NAME' => trigger_event(
+ 'NAME' => trigger_change(
'render_category_name',
$row['name'],
'get_categories_menu'
@@ -230,7 +230,7 @@ function get_category_preferred_image_orders()
{
global $conf, $page;
- return trigger_event('get_category_preferred_image_orders', array(
+ return trigger_change('get_category_preferred_image_orders', array(
array(l10n('Default'), '', true),
array(l10n('Photo title, A &rarr; Z'), 'name ASC', true),
array(l10n('Photo title, Z &rarr; A'), 'name DESC', true),
@@ -279,7 +279,7 @@ function display_select_categories($categories,
(3 * substr_count($category['global_rank'], '.')));
$option.= '- ';
$option.= strip_tags(
- trigger_event(
+ trigger_change(
'render_category_name',
$category['name'],
'display_select_categories'