diff options
author | mistic100 <mistic@piwigo.org> | 2014-06-02 07:55:46 +0000 |
---|---|---|
committer | mistic100 <mistic@piwigo.org> | 2014-06-02 07:55:46 +0000 |
commit | 4bd32005b56f6ec741ceeed0a1745fe89f291085 (patch) | |
tree | e2ee9bb68d07822bb7c0122831a0ce313a5af2d2 /include/functions_mail.inc.php | |
parent | f98edc7a2e423bed534977107e4cb892180cb946 (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-- | include/functions_mail.inc.php | 8 |
1 files changed, 4 insertions, 4 deletions
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 |