aboutsummaryrefslogtreecommitdiff
path: root/mod/blog/actions
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-06-18 15:57:37 -0400
committercash <cash.costello@gmail.com>2011-06-18 15:57:37 -0400
commitc4ae03d15a001145321dbba67121454a6dc80aa3 (patch)
treee41582c44bf9830dec974498f01421e22ac8191f /mod/blog/actions
parentece8d3caf00bf117d4a47393275b9e321f2536be (diff)
downloadelgg-c4ae03d15a001145321dbba67121454a6dc80aa3.tar.gz
elgg-c4ae03d15a001145321dbba67121454a6dc80aa3.tar.bz2
using elgg_delete_river() rather than custom SQL in blog save action
Diffstat (limited to 'mod/blog/actions')
-rw-r--r--mod/blog/actions/blog/save.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/mod/blog/actions/blog/save.php b/mod/blog/actions/blog/save.php
index c42845037..0720d6163 100644
--- a/mod/blog/actions/blog/save.php
+++ b/mod/blog/actions/blog/save.php
@@ -148,9 +148,10 @@ if (!$error) {
$blog->save();
}
} elseif ($old_status == 'published' && $status == 'draft') {
- $q = "DELETE FROM {$db_prefix}river
- WHERE object_guid = $blog->guid AND action_type = 'create'";
- delete_data($q);
+ elgg_delete_river(array(
+ 'object_guid' => $blog->guid,
+ 'action_type' => 'create',
+ ));
}
if ($blog->status == 'published') {