mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-27 19:59:56 +03:00
feature 3010 : replace trigger_action/event by trigger_notify/change
git-svn-id: http://piwigo.org/svn/trunk@28587 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
f98edc7a2e
commit
4bd32005b5
62 changed files with 322 additions and 344 deletions
|
@ -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');
|
||||
|
||||
?>
|
Loading…
Add table
Add a link
Reference in a new issue