From 89623393d4b1722c399454656dc3abc3e39446f4 Mon Sep 17 00:00:00 2001 From: rub Date: Tue, 11 Dec 2007 06:10:38 +0000 Subject: Resolved issue 0000784: Mail notification disabled on register user Merge branch-1_7 2176:2177 into BSF git-svn-id: http://piwigo.org/svn/trunk@2178 68402e56-0260-453c-a942-63ccdbb3a9ee --- register.php | 25 ++----------------------- 1 file changed, 2 insertions(+), 23 deletions(-) (limited to 'register.php') diff --git a/register.php b/register.php index eed28b847..5eb1d5b5d 100644 --- a/register.php +++ b/register.php @@ -52,34 +52,13 @@ if (isset($_POST['submit'])) register_user($_POST['login'], $_POST['password'], $_POST['mail_address'], + true, $errors); if (count($errors) == 0) { $user_id = get_userid($_POST['login']); - log_user( $user_id, false); - - if ($conf['email_admin_on_new_user']) - { - include_once(PHPWG_ROOT_PATH.'include/functions_mail.inc.php'); - $username = $_POST['login']; - $admin_url = get_absolute_root_url() - .'admin.php?page=user_list&username='.$username; - - $keyargs_content = array - ( - get_l10n_args('User: %s', $username), - get_l10n_args('Email: %s', $_POST['mail_address']), - get_l10n_args('', ''), - get_l10n_args('Admin: %s', $admin_url) - ); - - pwg_mail_notification_admins - ( - get_l10n_args('Registration of %s', $username), - $keyargs_content - ); - } + log_user($user_id, false); redirect(make_index_url()); } } -- cgit v1.2.3