aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/notification.php
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-25 19:21:21 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-25 19:21:21 +0000
commit401fd957b30219a610014d4236de35b6220fd310 (patch)
tree072d7ef4b88000ff20df90724e4f798bf5448b74 /engine/lib/notification.php
parentfb24a60da5ea1627c8336e387217bd6ca2b45f74 (diff)
downloadelgg-401fd957b30219a610014d4236de35b6220fd310.tar.gz
elgg-401fd957b30219a610014d4236de35b6220fd310.tar.bz2
Closes #79: Email confirmation on registration & email change
http://trac.elgg.org/elgg/ticket/79 git-svn-id: https://code.elgg.org/elgg/trunk@1137 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/notification.php')
-rw-r--r--engine/lib/notification.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/engine/lib/notification.php b/engine/lib/notification.php
index 145f9a4a0..aa2ecbfdd 100644
--- a/engine/lib/notification.php
+++ b/engine/lib/notification.php
@@ -110,7 +110,7 @@
throw new NotificationException(sprintf(elgg_echo('NotificationException:NoHandlerFound'), $method));
if ($CONFIG->debug)
- error_log("Sending message to $guid using $method");
+ error_log("Sending message to $guid using $method");
// Trigger handler and retrieve result.
$result[$guid][$method] = $handler(
@@ -226,7 +226,10 @@
if ($from->email)
$from = $from->email; // Handle users
else if ($from->url)
- $from = 'noreply@' . parse_url($from->url, 'host'); // Handle anything with a url
+ {
+ $breakdown = parse_url($from->url);
+ $from = 'noreply@' . $breakdown['host']; // Handle anything with a url
+ }
else {
$from = 'noreply@' . get_site_domain($CONFIG->site_guid); // Handle a fallback
}