From 279e93e613d2312a69cc9af3db150e90ccc3c80f Mon Sep 17 00:00:00 2001 From: marcus Date: Wed, 9 Jul 2008 13:50:35 +0000 Subject: Removed toggle since it broke the handler prototype git-svn-id: https://code.elgg.org/elgg/trunk@1359 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/notification.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'engine/lib') diff --git a/engine/lib/notification.php b/engine/lib/notification.php index e711b8bc5..1b466ecc3 100644 --- a/engine/lib/notification.php +++ b/engine/lib/notification.php @@ -206,10 +206,9 @@ * @param string $subject The subject of the message. * @param string $message The message body * @param array $params Optional parameters (none taken in this instance) - * @param bool $hide_sender If true (default) hide the sender's email address (use noreply@site...) * @return bool */ - function email_notify_handler(ElggEntity $from, ElggUser $to, $subject, $message, array $params = NULL, $hide_sender = true) + function email_notify_handler(ElggEntity $from, ElggUser $to, $subject, $message, array $params = NULL) { global $CONFIG; @@ -223,7 +222,7 @@ throw new NotificationException(sprintf(elgg_echo('NotificationException:NoEmailAddress'), $to->guid)); $to = $to->email; - if (!$hide_sender) + /*if (!$hide_sender) { if ($from->email) $from = $from->email; // Handle users @@ -236,8 +235,8 @@ $from = 'noreply@' . get_site_domain($CONFIG->site_guid); // Handle a fallback } } - else - $from = 'noreply@' . get_site_domain($CONFIG->site_guid); // Handle a fallback + else*/ + $from = 'noreply@' . get_site_domain($CONFIG->site_guid); // Handle a fallback $headers = "From: $from\r\n"; -- cgit v1.2.3