diff options
Diffstat (limited to 'mod/blog/actions/blog/delete.php')
-rw-r--r-- | mod/blog/actions/blog/delete.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mod/blog/actions/blog/delete.php b/mod/blog/actions/blog/delete.php index 8fa1ff889..ee8621257 100644 --- a/mod/blog/actions/blog/delete.php +++ b/mod/blog/actions/blog/delete.php @@ -13,8 +13,10 @@ $blog_guid = get_input('guid'); $blog = get_entity($blog_guid); if (elgg_instanceof($blog, 'object', 'blog') && $blog->canEdit()) { + $container = get_entity($blog->container_guid); if ($blog->delete()) { system_message(elgg_echo('blog:message:deleted_post')); + forward("pg/blog/$container->username/read/"); } else { register_error(elgg_echo('blog:error:cannot_delete_post')); } |