aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/forum.php
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-05-14 20:01:59 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-05-14 20:01:59 +0000
commitb6aaba915151dd07800761a01b67ffffaee1302b (patch)
tree53c30035411460270278943f2427405233b34fac /mod/groups/forum.php
parentffbd7cd4179a0186dc674c2d24f578660cc75df0 (diff)
downloadelgg-b6aaba915151dd07800761a01b67ffffaee1302b.tar.gz
elgg-b6aaba915151dd07800761a01b67ffffaee1302b.tar.bz2
merge -r5898:5928 (not excluding riverdashboard, notifications, and messageboard) from 1.7 to trunk.
git-svn-id: http://code.elgg.org/elgg/trunk@6058 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/groups/forum.php')
-rw-r--r--mod/groups/forum.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/mod/groups/forum.php b/mod/groups/forum.php
index a19d86a0b..a8a4d391e 100644
--- a/mod/groups/forum.php
+++ b/mod/groups/forum.php
@@ -1,7 +1,7 @@
<?php
/**
* Elgg groups forum
- *
+ *
* @package ElggGroups
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
* @author Curverider
@@ -11,8 +11,11 @@
require_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php");
- set_page_owner((int)get_input('group_guid'));
- if (!(page_owner_entity() instanceof ElggGroup)) forward();
+ $group_guid = (int)get_input('group_guid');
+ set_page_owner($group_guid);
+ if (!(page_owner_entity() instanceof ElggGroup)) {
+ forward();
+ }
group_gatekeeper();
@@ -21,7 +24,6 @@
set_context('search');
// set up breadcrumbs
- $group_guid = get_input('group_guid');
$group = get_entity($group_guid);
elgg_push_breadcrumb(elgg_echo('groups'), $CONFIG->wwwroot."pg/groups/world/");
elgg_push_breadcrumb($group->name, $group->getURL());