Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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
  • Loading branch information...
commit 7ef25d91cd64f29fb064b29d8695dc50e5c6054d 1 parent e4158cb
@cash cash authored
View
6 mod/blog/actions/blog/delete.php
@@ -12,7 +12,11 @@
$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'));
}
View
8 mod/file/actions/file/upload.php
@@ -185,8 +185,12 @@
}
if (!$ajax) {
- $container_user = get_entity($container_guid);
- forward(elgg_get_site_url() . "pg/file/" . $container_user->username);
+ $container = get_entity($container_guid);
+ if (elgg_instanceof($container, 'group')) {
+ forward("pg/file/group/$container->guid/owner");
+ } else {
+ forward("pg/file/owner/$container->username");
+ }
}
} else {
View
6 mod/pages/actions/pages/delete.php
@@ -32,7 +32,11 @@
forward($parent->getURL());
}
}
- forward("pg/pages/owned/$container->username/");
+ if (elgg_instanceof($container, 'group')) {
+ forward("pg/pages/group/$container->guid/owner");
+ } else {
+ forward("pg/pages/owner/$container->username/");
+ }
}
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.