diff options
author | Cash Costello <cash.costello@gmail.com> | 2012-06-23 10:35:29 -0400 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2012-06-23 10:35:29 -0400 |
commit | 32b9e8488957c109db3fee86a0f941d3685cb52b (patch) | |
tree | 95c46685fef0418f90eba26e5be32b06bfbc2343 /mod/pages | |
parent | 5e16ef8e61e7674ac8caa6ee770e106983d261da (diff) | |
download | elgg-32b9e8488957c109db3fee86a0f941d3685cb52b.tar.gz elgg-32b9e8488957c109db3fee86a0f941d3685cb52b.tar.bz2 |
Fixes #4610 better handling of content requiring a logged in user
Diffstat (limited to 'mod/pages')
-rw-r--r-- | mod/pages/pages/pages/view.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mod/pages/pages/pages/view.php b/mod/pages/pages/pages/view.php index 6b9d03f49..e1c3fdbfd 100644 --- a/mod/pages/pages/pages/view.php +++ b/mod/pages/pages/pages/view.php @@ -9,7 +9,8 @@ $page_guid = get_input('guid'); $page = get_entity($page_guid); if (!$page) { register_error(elgg_echo('noaccess')); - forward(); + $_SESSION['last_forward_from'] = current_page_url(); + forward(''); } elgg_set_page_owner_guid($page->getContainerGUID()); |