From: brettp Date: Sun, 20 Feb 2011 17:13:31 +0000 (+0000) Subject: Refs #2617, #2956: Merged email notification exception message fix in r7926 to trunk. X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=12fb8e8c876248c812cf89c28107d85787b10125;p=lorea%2Felgg.git Refs #2617, #2956: Merged email notification exception message fix in r7926 to trunk. git-svn-id: http://code.elgg.org/elgg/trunk@8361 36083f99-b078-4883-b0ff-0f9b5a30f544 --- diff --git a/engine/lib/notification.php b/engine/lib/notification.php index b48fec2fe..0754d683a 100644 --- a/engine/lib/notification.php +++ b/engine/lib/notification.php @@ -292,12 +292,12 @@ function elgg_send_email($from, $to, $subject, $body, array $params = NULL) { global $CONFIG; if (!$from) { - $msg = elgg_echo('NotificationException:NoEmailAddress', array('from')); + $msg = elgg_echo('NotificationException:MissingParameter', array('from')); throw new NotificationException($msg); } if (!$to) { - $msg = elgg_echo('NotificationException:NoEmailAddress', array('to')); + $msg = elgg_echo('NotificationException:MissingParameter', array('to')); throw new NotificationException($msg); }