From 69632928a86237c0649451b22bbf21dbc594ed24 Mon Sep 17 00:00:00 2001 From: rub Date: Sun, 11 Feb 2007 12:01:07 +0000 Subject: subcribe instead of subscribe => spam for free. Correction of all bad English word. git-svn-id: http://piwigo.org/svn/trunk@1806 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/include/functions_notification_by_mail.inc.php | 12 ++++++------ admin/notification_by_mail.php | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'admin') 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); } } -- cgit v1.2.3