diff options
author | dave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-05-26 15:55:29 +0000 |
---|---|---|
committer | dave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-05-26 15:55:29 +0000 |
commit | d2889b825d4e53619808d49f9ed3b55dca549b9b (patch) | |
tree | c3c1ab194d19de73dd77e08c550849abbf2824a1 /mod/groups/views/default/forms/forums/addtopic.php | |
parent | 33dc3921aa7adb28d0812a22ff9ff86c124af6f2 (diff) | |
download | elgg-d2889b825d4e53619808d49f9ed3b55dca549b9b.tar.gz elgg-d2889b825d4e53619808d49f9ed3b55dca549b9b.tar.bz2 |
group discussion access defaults to the group
git-svn-id: http://code.elgg.org/elgg/trunk@6233 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/groups/views/default/forms/forums/addtopic.php')
-rw-r--r-- | mod/groups/views/default/forms/forums/addtopic.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/mod/groups/views/default/forms/forums/addtopic.php b/mod/groups/views/default/forms/forums/addtopic.php index fcc75f7a7..ca972c714 100644 --- a/mod/groups/views/default/forms/forums/addtopic.php +++ b/mod/groups/views/default/forms/forums/addtopic.php @@ -19,13 +19,14 @@ $message = ""; $message_id = ""; $status = ""; - $access_id = ACCESS_DEFAULT; - + // get the group guid $group_guid = (int) get_input('group_guid'); // set up breadcrumbs $group = get_entity($group_guid); + $access_id = $group->group_acl; + $options = group_access_options($group); elgg_push_breadcrumb(elgg_echo('groups'), $CONFIG->wwwroot."pg/groups/world/"); elgg_push_breadcrumb($group->name, $group->getURL()); elgg_push_breadcrumb(elgg_echo('item:object:groupforumtopic'), $CONFIG->wwwroot."pg/groups/forum/{$group_guid}/"); @@ -93,7 +94,7 @@ <p> <label> <?php echo elgg_echo('access'); ?><br /> - <?php echo elgg_view('input/access', array('internalname' => 'access_id','value' => $access_id)); ?> + <?php echo elgg_view('input/access', array('internalname' => 'access_id','value' => $access_id, 'options' => $options)); ?> </label> </p> |