admin_gatekeeper();
$group_guid = get_input('group_guid');
- $action = get_input('action');
+ $action = get_input('type');
$group = get_entity($group_guid);
}
- forward("pg/groups/world/");
-
-?>
\ No newline at end of file
+ forward($_SERVER['HTTP_REFERER']);
\ No newline at end of file
'groups:makeunfeatured' => 'Unfeature',
'groups:makefeatured' => 'Make featured',
'groups:featuredon' => 'You have made this group a featured one.',
- 'groups:unfeature' => 'You have removed this group from the featured list',
+ 'groups:unfeatured' => 'You have removed this group from the featured list',
'groups:joinrequest' => 'Request membership',
'groups:join' => 'Join group',
'groups:leave' => 'Leave group',
//for admins only - display the feature or unfeature option
if(isadminloggedin()) {
if($vars['entity']->featured_group == "yes"){
- $url = elgg_add_action_tokens_to_url($vars['url'] . "action/groups/featured?group_guid=" . $vars['entity']->guid . "&action=unfeature");
+ $url = elgg_add_action_tokens_to_url($vars['url'] . "action/groups/featured?group_guid=" . $vars['entity']->guid . "&type=unfeature");
$wording = elgg_echo("groups:makeunfeatured");
}else{
- $url = elgg_add_action_tokens_to_url($vars['url'] . "action/groups/featured?group_guid=" . $vars['entity']->guid . "&action=feature");
+ $url = elgg_add_action_tokens_to_url($vars['url'] . "action/groups/featured?group_guid=" . $vars['entity']->guid . "&type=feature");
$wording = elgg_echo("groups:makefeatured");
}
// display 'make featured' option