aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/notification.php
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-03 19:46:47 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-03 19:46:47 +0000
commit998a39940b27561d7a2e98b68c8929dab68fe62f (patch)
tree79e73eb7bd8ae843609a2f4f0a526377800430e1 /engine/lib/notification.php
parent4b3749440c560da36b7deadcee65133062fd10a1 (diff)
downloadelgg-998a39940b27561d7a2e98b68c8929dab68fe62f.tar.gz
elgg-998a39940b27561d7a2e98b68c8929dab68fe62f.tar.bz2
Refs #1320. Updated core to use elgg_echo()'s native string replacement.
git-svn-id: http://code.elgg.org/elgg/trunk@7227 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/notification.php')
-rw-r--r--engine/lib/notification.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/engine/lib/notification.php b/engine/lib/notification.php
index cfb79715c..5aef42aad 100644
--- a/engine/lib/notification.php
+++ b/engine/lib/notification.php
@@ -132,7 +132,7 @@ function notify_user($to, $from, $subject, $message, array $params = NULL, $meth
$handler = $details->handler;
if ((!$NOTIFICATION_HANDLERS[$method]) || (!$handler)) {
- error_log(sprintf(elgg_echo('NotificationException:NoHandlerFound'), $method));
+ error_log(elgg_echo('NotificationException:NoHandlerFound', array($method)));
}
elgg_log("Sending message to $guid using $method");
@@ -238,17 +238,17 @@ array $params = NULL) {
global $CONFIG;
if (!$from) {
- $msg = sprintf(elgg_echo('NotificationException:MissingParameter'), 'from');
+ $msg = elgg_echo('NotificationException:MissingParameter', array('from'));
throw new NotificationException($msg);
}
if (!$to) {
- $msg = sprintf(elgg_echo('NotificationException:MissingParameter'), 'to');
+ $msg = elgg_echo('NotificationException:MissingParameter', array('to'));
throw new NotificationException($msg);
}
if ($to->email == "") {
- $msg = sprintf(elgg_echo('NotificationException:NoEmailAddress'), $to->guid);
+ $msg = elgg_echo('NotificationException:NoEmailAddress', array($to->guid));
throw new NotificationException($msg);
}
@@ -287,12 +287,12 @@ function elgg_send_email($from, $to, $subject, $body, array $params = NULL) {
global $CONFIG;
if (!$from) {
- $msg = sprintf(elgg_echo('NotificationException:NoEmailAddress'), 'from');
+ $msg = elgg_echo('NotificationException:NoEmailAddress', array('from'));
throw new NotificationException($msg);
}
if (!$to) {
- $msg = sprintf(elgg_echo('NotificationException:NoEmailAddress'), 'to');
+ $msg = elgg_echo('NotificationException:NoEmailAddress', array('to'));
throw new NotificationException($msg);
}