diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-03 22:13:10 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-03 22:13:10 +0000 |
commit | eff4faea7f3c95440f02ea45d0be4f67236e2bf3 (patch) | |
tree | 57d51ef4bc84547d60c9a6faae7d5ff5d82d00f9 /mod/messageboard/start.php | |
parent | 4b501dda1d62195531e4c2ab1bd84971c0cd4e37 (diff) | |
download | elgg-eff4faea7f3c95440f02ea45d0be4f67236e2bf3.tar.gz elgg-eff4faea7f3c95440f02ea45d0be4f67236e2bf3.tar.bz2 |
Fixes #1320: Bundled mods use elgg_echo()'s internal string substitution.
git-svn-id: http://code.elgg.org/elgg/trunk@7229 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/messageboard/start.php')
-rw-r--r-- | mod/messageboard/start.php | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/mod/messageboard/start.php b/mod/messageboard/start.php index 88d7c72f3..f97e77999 100644 --- a/mod/messageboard/start.php +++ b/mod/messageboard/start.php @@ -4,7 +4,7 @@ * Elgg Message board * This plugin allows users and groups to attach a message board to their profile for other users * to post comments. - * + * * @package ElggMessageBoard */ @@ -36,7 +36,7 @@ function messageboard_page_handler($page) { if (isset($page[0])) { set_input('username', $page[0]); } - + // Include the standard messageboard index include($CONFIG->pluginspath . "messageboard/index.php"); } @@ -52,7 +52,7 @@ function messageboard_page_handler($page) { */ function messageboard_add($poster, $owner, $message, $access_id = ACCESS_PUBLIC) { global $CONFIG; - + $result = $owner->annotate('messageboard', $message, $access_id, $poster->guid); if (!$result) { return FALSE; @@ -69,14 +69,13 @@ function messageboard_add($poster, $owner, $message, $access_id = ACCESS_PUBLIC) // only send notification if not self if ($poster->guid != $owner->guid) { $subject = elgg_echo('messageboard:email:subject'); - $body = sprintf( - elgg_echo('messageboard:email:body'), + $body = elgg_echo('messageboard:email:body', array( $poster->name, $message, elgg_get_site_url() . "pg/messageboard/" . $owner->username, $poster->name, $poster->getURL() - ); + )); notify_user($owner->guid, $poster->guid, $subject, $body); } |