diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-04-20 14:59:56 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-04-20 14:59:56 +0000 |
commit | 34625fc95c5e2250ed68abd94c28dccd16438759 (patch) | |
tree | 0474c955adee014d40a1ccaf7e383ad6b88dbc26 /mod/groups/start.php | |
parent | d928588805375e7190ab393e2def555b39701a27 (diff) | |
download | elgg-34625fc95c5e2250ed68abd94c28dccd16438759.tar.gz elgg-34625fc95c5e2250ed68abd94c28dccd16438759.tar.bz2 |
Fixes #3364: Added action tokens and fixed guids for featuring/unfeaturing groups. Cleaned up language for result messages.
git-svn-id: http://code.elgg.org/elgg/trunk@9006 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/groups/start.php')
-rw-r--r-- | mod/groups/start.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/mod/groups/start.php b/mod/groups/start.php index ee99ac9b4..9de7f1cc1 100644 --- a/mod/groups/start.php +++ b/mod/groups/start.php @@ -346,11 +346,11 @@ function groups_entity_menu_setup($hook, $type, $return, $params) { // feature link if (elgg_is_admin_logged_in()) { - if ($group->featured_group == "yes") { - $url = "action/groups/featured?group_guid={$group->guid}&action_type=unfeature"; + if ($entity->featured_group == "yes") { + $url = "action/groups/featured?group_guid={$entity->guid}&action_type=unfeature"; $wording = elgg_echo("groups:makeunfeatured"); } else { - $url = "action/groups/featured?group_guid={$group->guid}&action_type=feature"; + $url = "action/groups/featured?group_guid={$entity->guid}&action_type=feature"; $wording = elgg_echo("groups:makefeatured"); } $options = array( @@ -358,6 +358,7 @@ function groups_entity_menu_setup($hook, $type, $return, $params) { 'text' => $wording, 'href' => $url, 'priority' => 300, + 'is_action' => true ); $return[] = ElggMenuItem::factory($options); } |