aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--admin/include/functions_notification_by_mail.inc.php12
-rw-r--r--admin/notification_by_mail.php6
2 files changed, 9 insertions, 9 deletions
diff --git a/admin/include/functions_notification_by_mail.inc.php b/admin/include/functions_notification_by_mail.inc.php
index 44f1afdb9..64358ec9e 100644
--- a/admin/include/functions_notification_by_mail.inc.php
+++ b/admin/include/functions_notification_by_mail.inc.php
@@ -384,7 +384,7 @@ function assign_vars_nbm_mail_content($nbm_user)
*
* @return check_key list treated
*/
-function do_subscribe_unsubcribe_notification_by_mail($is_admin_request, $is_subscribe = false, $check_key_list = array())
+function do_subscribe_unsubscribe_notification_by_mail($is_admin_request, $is_subscribe = false, $check_key_list = array())
{
global $conf, $page, $env_nbm, $conf;
@@ -433,7 +433,7 @@ function do_subscribe_unsubcribe_notification_by_mail($is_admin_request, $is_sub
// set env nbm user
set_user_on_env_nbm($nbm_user['user_id'], true);
- $subject = '['.$conf['gallery_title'].']: '.($is_subscribe ? l10n('nbm_object_subcribe'): l10n('nbm_object_unsubcribe'));
+ $subject = '['.$conf['gallery_title'].']: '.($is_subscribe ? l10n('nbm_object_subscribe'): l10n('nbm_object_unsubscribe'));
// Assign current var for nbm mail
assign_vars_nbm_mail_content($nbm_user);
@@ -523,9 +523,9 @@ function do_subscribe_unsubcribe_notification_by_mail($is_admin_request, $is_sub
*
* @return check_key list treated
*/
-function unsubcribe_notification_by_mail($is_admin_request, $check_key_list = array())
+function unsubscribe_notification_by_mail($is_admin_request, $check_key_list = array())
{
- return do_subscribe_unsubcribe_notification_by_mail($is_admin_request, false, $check_key_list);
+ return do_subscribe_unsubscribe_notification_by_mail($is_admin_request, false, $check_key_list);
}
/*
@@ -535,9 +535,9 @@ function unsubcribe_notification_by_mail($is_admin_request, $check_key_list = ar
*
* @return check_key list treated
*/
-function subcribe_notification_by_mail($is_admin_request, $check_key_list = array())
+function subscribe_notification_by_mail($is_admin_request, $check_key_list = array())
{
- return do_subscribe_unsubcribe_notification_by_mail($is_admin_request, true, $check_key_list);
+ return do_subscribe_unsubscribe_notification_by_mail($is_admin_request, true, $check_key_list);
}
?>
diff --git a/admin/notification_by_mail.php b/admin/notification_by_mail.php
index d2c6f76f4..a000fdb4b 100644
--- a/admin/notification_by_mail.php
+++ b/admin/notification_by_mail.php
@@ -188,7 +188,7 @@ order by
// Insert new nbm_users
mass_inserts(USER_MAIL_NOTIFICATION_TABLE, array('user_id', 'check_key', 'enabled'), $inserts);
// Update field enabled with specific function
- $check_key_treated = do_subscribe_unsubcribe_notification_by_mail
+ $check_key_treated = do_subscribe_unsubscribe_notification_by_mail
(
true,
$conf['nbm_default_value_user_enabled'],
@@ -520,13 +520,13 @@ where
{
if (isset($_POST['falsify']) and isset($_POST['cat_true']))
{
- $check_key_treated = unsubcribe_notification_by_mail(true, $_POST['cat_true']);
+ $check_key_treated = unsubscribe_notification_by_mail(true, $_POST['cat_true']);
do_timeout_treatment('cat_true', $check_key_treated);
}
else
if (isset($_POST['trueify']) and isset($_POST['cat_false']))
{
- $check_key_treated = subcribe_notification_by_mail(true, $_POST['cat_false']);
+ $check_key_treated = subscribe_notification_by_mail(true, $_POST['cat_false']);
do_timeout_treatment('cat_false', $check_key_treated);
}
}