From 6b0c8831ffc5ae3b5cf707e04eb38c742ffd74f3 Mon Sep 17 00:00:00 2001 From: friendica Date: Sun, 8 Sep 2013 22:56:53 -0700 Subject: [PATCH] fix the recipient and subject localisation of failed update emails --- boot.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/boot.php b/boot.php index 483e98bba..313a93f2c 100755 --- a/boot.php +++ b/boot.php @@ -1234,10 +1234,10 @@ function check_config(&$a) { '$error' => sprintf( t('Update %s failed. See error logs.'), $x) )); - $subject=sprintf(t('Update Error at %s'), $a->get_baseurl()); + $subject = email_header_encode(sprintf(t('Update Error at %s'), $a->get_baseurl())); - mail($a->config['admin_email'], $subject, $email_msg, - 'From: ' . t('Administrator') . '@' . $_SERVER['SERVER_NAME'] . "\n" + mail($a->config['system']['admin_email'], $subject, $email_msg, + 'From: Administrator' . '@' . $_SERVER['SERVER_NAME'] . "\n" . 'Content-type: text/plain; charset=UTF-8' . "\n" . 'Content-transfer-encoding: 8bit' ); //try the logger