diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-12 18:20:12 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-12 18:20:12 +0000 |
commit | 7ef25d91cd64f29fb064b29d8695dc50e5c6054d (patch) | |
tree | 68794061c1b9572997b0faedcd7d607469fc197e /mod/pages | |
parent | e4158cbf4159183b7d9362cf30c7fd5dfb1d877a (diff) | |
download | elgg-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/pages')
-rw-r--r-- | mod/pages/actions/pages/delete.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mod/pages/actions/pages/delete.php b/mod/pages/actions/pages/delete.php index aea383ef8..927da1299 100644 --- a/mod/pages/actions/pages/delete.php +++ b/mod/pages/actions/pages/delete.php @@ -32,7 +32,11 @@ if ($page) { 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/"); + } } } } |