]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Refs #2617, #2956: Merged email notification exception message fix in r7926 to trunk.
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sun, 20 Feb 2011 17:13:31 +0000 (17:13 +0000)
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sun, 20 Feb 2011 17:13:31 +0000 (17:13 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@8361 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/lib/notification.php

index b48fec2fe73766b8646585a8fc90af2bc6059b02..0754d683a3684403fbbd1acede94b4342448b2a7 100644 (file)
@@ -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);
        }