aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions.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.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 '')
-rw-r--r--include/functions.inc.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/functions.inc.php b/include/functions.inc.php
index ecc799a55..03d87dfa5 100644
--- a/include/functions.inc.php
+++ b/include/functions.inc.php
@@ -423,7 +423,7 @@ function pwg_log($image_id = null, $image_type = null)
$do_log = $conf['history_guest'];
}
- $do_log = trigger_event('pwg_log_allowed', $do_log, $image_id, $image_type);
+ $do_log = trigger_change('pwg_log_allowed', $do_log, $image_id, $image_type);
if (!$do_log)
{
@@ -773,7 +773,7 @@ function redirect_html( $url , $msg = '', $refresh_time = 0)
{
$user = build_user( $conf['guest_id'], true);
load_language('common.lang');
- trigger_action('loading_lang');
+ trigger_notify('loading_lang');
load_language('lang', PHPWG_ROOT_PATH.PWG_LOCAL_DIR, array('no_fallback'=>true, 'local'=>true) );
$template = new Template(PHPWG_ROOT_PATH.'themes', get_default_theme());
}
@@ -870,7 +870,7 @@ SELECT
}
// plugins want remove some themes based on user status maybe?
- $themes = trigger_event('get_pwg_themes', $themes);
+ $themes = trigger_change('get_pwg_themes', $themes);
return $themes;
}
@@ -1112,7 +1112,7 @@ SELECT '.$conf['user_fields']['email'].'
;';
list($email) = pwg_db_fetch_row(pwg_query($query));
- $email = trigger_event('get_webmaster_mail_address', $email);
+ $email = trigger_change('get_webmaster_mail_address', $email);
return $email;
}
@@ -1154,7 +1154,7 @@ SELECT param, value
$conf[ $row['param'] ] = $val;
}
- trigger_action('load_conf', $condition);
+ trigger_notify('load_conf', $condition);
}
/**