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/functions_mail.inc.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include/functions_mail.inc.php') diff --git a/include/functions_mail.inc.php b/include/functions_mail.inc.php index 8b20e1665..4c572b665 100644 --- a/include/functions_mail.inc.php +++ b/include/functions_mail.inc.php @@ -312,7 +312,7 @@ function switch_lang_to($language) load_language($filename, $dirname, array('language'=>$language) ); } - trigger_action('loading_lang'); + trigger_notify('loading_lang'); load_language('lang', PHPWG_ROOT_PATH.PWG_LOCAL_DIR, array('language'=>$language, 'no_fallback'=>true, 'local'=>true) ); @@ -696,7 +696,7 @@ function pwg_mail($to, $args=array(), $tpl=array()) if (!isset($conf_mail[$cache_key]['theme'])) { $conf_mail[$cache_key]['theme'] = get_mail_template($content_type); - trigger_action('before_parse_mail_template', $cache_key, $content_type); + trigger_notify('before_parse_mail_template', $cache_key, $content_type); } $template = &$conf_mail[$cache_key]['theme']; @@ -854,7 +854,7 @@ function pwg_mail($to, $args=array(), $tpl=array()) } $ret = true; - $pre_result = trigger_event('before_send_mail', true, $to, $args, $mail); + $pre_result = trigger_change('before_send_mail', true, $to, $args, $mail); if ($pre_result) { @@ -945,6 +945,6 @@ function pwg_send_mail_test($success, $mail, $args) } } -trigger_action('functions_mail_included'); +trigger_notify('functions_mail_included'); ?> \ No newline at end of file -- cgit v1.2.3