aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/lib/discussion.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2012-06-23 10:35:29 -0400
committerCash Costello <cash.costello@gmail.com>2012-06-23 10:35:29 -0400
commit32b9e8488957c109db3fee86a0f941d3685cb52b (patch)
tree95c46685fef0418f90eba26e5be32b06bfbc2343 /mod/groups/lib/discussion.php
parent5e16ef8e61e7674ac8caa6ee770e106983d261da (diff)
downloadelgg-32b9e8488957c109db3fee86a0f941d3685cb52b.tar.gz
elgg-32b9e8488957c109db3fee86a0f941d3685cb52b.tar.bz2
Fixes #4610 better handling of content requiring a logged in user
Diffstat (limited to 'mod/groups/lib/discussion.php')
-rw-r--r--mod/groups/lib/discussion.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/mod/groups/lib/discussion.php b/mod/groups/lib/discussion.php
index 55642644d..02ab27fdc 100644
--- a/mod/groups/lib/discussion.php
+++ b/mod/groups/lib/discussion.php
@@ -149,8 +149,9 @@ function discussion_handle_view_page($guid) {
$topic = get_entity($guid);
if (!$topic) {
- register_error(elgg_echo('discussion:topic:notfound'));
- forward();
+ register_error(elgg_echo('noaccess'));
+ $_SESSION['last_forward_from'] = current_page_url();
+ forward('');
}
$group = $topic->getContainerEntity();