aboutsummaryrefslogtreecommitdiffstats
path: root/profile.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 /profile.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 '')
-rw-r--r--profile.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/profile.php b/profile.php
index 301fba825..29490b902 100644
--- a/profile.php
+++ b/profile.php
@@ -43,7 +43,7 @@ if (!defined('PHPWG_ROOT_PATH'))
$userdata = $user;
- trigger_action('loc_begin_profile');
+ trigger_notify('loc_begin_profile');
// Reset to default (Guest) custom settings
if (isset($_POST['reset_to_default']))
@@ -84,7 +84,7 @@ SELECT '.implode(',', $fields).'
}
include(PHPWG_ROOT_PATH.'include/page_header.php');
- trigger_action('loc_end_profile');
+ trigger_notify('loc_end_profile');
flush_page_messages();
$template->pparse('profile');
include(PHPWG_ROOT_PATH.'include/page_tail.php');
@@ -279,7 +279,7 @@ function save_profile_from_post($userdata, &$errors)
array('primary' => array('user_id'), 'update' => $fields),
array($data));
}
- trigger_action( 'save_profile_from_post', $userdata['id'] );
+ trigger_notify( 'save_profile_from_post', $userdata['id'] );
if (!empty($_POST['redirect']))
{
@@ -335,7 +335,7 @@ function load_profile_in_template($url_action, $url_redirect, $userdata)
$template->assign('IN_ADMIN', defined('IN_ADMIN'));
// allow plugins to add their own form data to content
- trigger_action( 'load_profile_in_template', $userdata );
+ trigger_notify( 'load_profile_in_template', $userdata );
$template->assign('PWG_TOKEN', get_pwg_token());
$template->assign_var_from_handle('PROFILE_CONTENT', 'profile_content');