From e0cbbbf918e17d1c6b415c2f9bd4780b97c4f204 Mon Sep 17 00:00:00 2001 From: friendica Date: Sat, 9 Feb 2013 13:20:10 -0800 Subject: smarty support in intltext, fix old pending accounts query in ping, log failed email register notify --- include/account.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'include/account.php') diff --git a/include/account.php b/include/account.php index f89197e0c..444036473 100644 --- a/include/account.php +++ b/include/account.php @@ -247,14 +247,14 @@ function send_reg_approval_email($arr) { push_lang('en'); $email_msg = replace_macros(get_intltext_template('register_verify_email.tpl'), array( - '$sitename' => get_config('config','sitename'), + '$sitename' => get_config('system','sitename'), '$siteurl' => z_root(), '$email' => $arr['email'], '$uid' => $arr['account']['account_id'], '$hash' => $hash )); - $res = mail($admin['email'], sprintf( t('Registration request at %s'), get_config('config','sitename')), + $res = mail($admin['email'], sprintf( t('Registration request at %s'), get_config('system','sitename')), $email_msg, 'From: ' . t('Administrator') . '@' . get_app()->get_hostname() . "\n" . 'Content-type: text/plain; charset=UTF-8' . "\n" @@ -263,6 +263,9 @@ function send_reg_approval_email($arr) { if($res) $delivered ++; + else + logger('send_reg_approval_email: failed to ' . $admin['email'] . 'account_id: ' . $arr['account']['account_id']); + pop_lang(); } -- cgit v1.2.3