]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes #3720. Using correctly filters for tabs on group landing page.
authorBrett Profitt <brett.profitt@gmail.com>
Mon, 5 Sep 2011 00:28:23 +0000 (17:28 -0700)
committerBrett Profitt <brett.profitt@gmail.com>
Mon, 5 Sep 2011 00:28:23 +0000 (17:28 -0700)
mod/groups/lib/groups.php

index 12a22deb406c0f3600ed28a38eb71c8757e08b76..86e6f018e2a1f7493380d7a8e7d457667583fb00 100644 (file)
@@ -17,7 +17,7 @@ function groups_handle_all_page() {
        $selected_tab = get_input('filter', 'newest');
 
        switch ($selected_tab) {
-               case 'pop':
+               case 'popular':
                        $content = elgg_list_entities_from_relationship_count(array(
                                'type' => 'group',
                                'relationship' => 'member',
@@ -25,7 +25,7 @@ function groups_handle_all_page() {
                                'full_view' => false,
                        ));
                        break;
-               case 'active':
+               case 'discussion':
                        $content = elgg_list_entities(array(
                                'type' => 'object',
                                'subtype' => 'groupforumtopic',
@@ -198,7 +198,7 @@ function groups_handle_invitations_page() {
        elgg_push_breadcrumb($title);
 
        // @todo temporary workaround for exts #287.
-       $invitations = groups_get_invited_groups($user->getGUID());
+       $invitations = groups_get_invited_groups(elgg_get_logged_in_user_guid());
        $content = elgg_view('groups/invitationrequests', array('invitations' => $invitations));
 
        $params = array(