aboutsummaryrefslogtreecommitdiff
path: root/mod/blog/actions
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-12 18:20:12 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-12 18:20:12 +0000
commit7ef25d91cd64f29fb064b29d8695dc50e5c6054d (patch)
tree68794061c1b9572997b0faedcd7d607469fc197e /mod/blog/actions
parente4158cbf4159183b7d9362cf30c7fd5dfb1d877a (diff)
downloadelgg-7ef25d91cd64f29fb064b29d8695dc50e5c6054d.tar.gz
elgg-7ef25d91cd64f29fb064b29d8695dc50e5c6054d.tar.bz2
Fixed #2887 redirects on blog, file, and pages works now - bookmarks plugin still needs plenty of work
git-svn-id: http://code.elgg.org/elgg/trunk@8167 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/blog/actions')
-rw-r--r--mod/blog/actions/blog/delete.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/mod/blog/actions/blog/delete.php b/mod/blog/actions/blog/delete.php
index a4606f17f..64179e09c 100644
--- a/mod/blog/actions/blog/delete.php
+++ b/mod/blog/actions/blog/delete.php
@@ -12,7 +12,11 @@ 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/owner/$container->username/");
+ if (elgg_instanceof($container, 'group')) {
+ forward("pg/blog/group/$container->guid/owner");
+ } else {
+ forward("pg/blog/owner/$container->username/");
+ }
} else {
register_error(elgg_echo('blog:error:cannot_delete_post'));
}