diff options
author | Cash Costello <cash.costello@gmail.com> | 2013-03-05 06:59:38 -0500 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2013-03-05 06:59:38 -0500 |
commit | f35cd7f855b60b1c572cd0aee2273a313c85ad53 (patch) | |
tree | e657307bf767d6ace1567498535163d20cc8f6e5 /mod/blog/actions | |
parent | f350d90e384a03629f95b1b5be9b7ad603438f46 (diff) | |
download | elgg-f35cd7f855b60b1c572cd0aee2273a313c85ad53.tar.gz elgg-f35cd7f855b60b1c572cd0aee2273a313c85ad53.tar.bz2 |
made the event more general for future support of objects with draft/publish status
Diffstat (limited to 'mod/blog/actions')
-rw-r--r-- | mod/blog/actions/blog/save.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/blog/actions/blog/save.php b/mod/blog/actions/blog/save.php index 910da9838..9256610cc 100644 --- a/mod/blog/actions/blog/save.php +++ b/mod/blog/actions/blog/save.php @@ -160,7 +160,7 @@ if (!$error) { // we only want notifications sent when post published register_notification_object('object', 'blog', elgg_echo('blog:newpost')); - elgg_trigger_event('publish', 'blog', $blog); + elgg_trigger_event('publish', 'object', $blog); // reset the creation time for posts that move from draft to published if ($guid) { |