aboutsummaryrefslogtreecommitdiff
path: root/mod/blog/actions
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-03-25 21:42:24 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-03-25 21:42:24 +0000
commite66c96a5709b8b2f9c8b8348ba684bf775ae1405 (patch)
tree8f4ad7d5e648440eed00c838f8d3d7ad38fa7aee /mod/blog/actions
parenta93e7ca6eebfbedef5b311eac53854d785e5c82b (diff)
downloadelgg-e66c96a5709b8b2f9c8b8348ba684bf775ae1405.tar.gz
elgg-e66c96a5709b8b2f9c8b8348ba684bf775ae1405.tar.bz2
Added river support to blog.
git-svn-id: http://code.elgg.org/elgg/trunk@5510 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/blog/actions')
-rw-r--r--mod/blog/actions/blog/save.php13
1 files changed, 4 insertions, 9 deletions
diff --git a/mod/blog/actions/blog/save.php b/mod/blog/actions/blog/save.php
index eca711f60..7115acaa4 100644
--- a/mod/blog/actions/blog/save.php
+++ b/mod/blog/actions/blog/save.php
@@ -144,6 +144,10 @@ if (!$error) {
}
system_message(elgg_echo('blog:message:saved'));
+ // @todo do we want to alert on updates?
+ if ($new_post) {
+ add_to_river('river/object/blog/create', 'create', get_loggedin_userid(), $blog->getGUID());
+ }
forward($success_forward_url);
} else {
register_error(elgg_echo('blog:error:cannot_save'));
@@ -152,13 +156,4 @@ if (!$error) {
} else {
register_error($error);
forward($error_forward_url);
-}
-
-// forward with success or failure
-if ($error) {
- register_error($error);
- forward($error_forward_url);
-} else {
- system_message(elgg_echo('blog:message:saved'));
- forward($success_forward_url);
} \ No newline at end of file