Skip to:
Content

BuddyPress.org

Changeset 2700


Ignore:
Timestamp:
02/12/2010 01:43:04 PM (14 years ago)
Author:
apeatling
Message:

Fixing missing populate_extras param on group functions.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups.php

    r2695 r2700  
    17301730 * user has joined.
    17311731 */
    1732 function groups_get_newest( $limit = null, $page = 1, $user_id = false, $search_terms = false ) {
    1733     return BP_Groups_Group::get_newest( $limit, $page, $user_id, $search_terms );
    1734 }
    1735 
    1736 function groups_get_active( $limit = null, $page = 1, $user_id = false, $search_terms = false ) {
    1737     return BP_Groups_Group::get_active( $limit, $page, $user_id, $search_terms );
    1738 }
    1739 
    1740 function groups_get_popular( $limit = null, $page = 1, $user_id = false, $search_terms = false ) {
    1741     return BP_Groups_Group::get_popular( $limit, $page, $user_id, $search_terms );
    1742 }
    1743 
    1744 function groups_get_random_groups( $limit = null, $page = 1, $user_id = false, $search_terms = false ) {
    1745     return BP_Groups_Group::get_random( $limit, $page, $user_id, $search_terms );
    1746 }
    1747 
    1748 function groups_get_alphabetically( $limit = null, $page = 1, $user_id = false, $search_terms = false ) {
    1749     return BP_Groups_Group::get_alphabetically( $limit, $page, $user_id, $search_terms );
    1750 }
    1751 
    1752 function groups_get_by_most_forum_topics( $limit = null, $page = 1, $user_id = false, $search_terms = false ) {
    1753     return BP_Groups_Group::get_by_most_forum_topics( $limit, $page, $user_id, $search_terms );
    1754 }
    1755 
    1756 function groups_get_by_most_forum_posts( $limit = null, $page = 1, $user_id = false, $search_terms = false ) {
    1757     return BP_Groups_Group::get_by_most_forum_posts( $limit, $page, $user_id, $search_terms );
     1732function groups_get_newest( $limit = null, $page = 1, $user_id = false, $search_terms = false, $populate_extras = true ) {
     1733    return BP_Groups_Group::get_newest( $limit, $page, $user_id, $search_terms, $populate_extras );
     1734}
     1735
     1736function groups_get_active( $limit = null, $page = 1, $user_id = false, $search_terms = false, $populate_extras = true ) {
     1737    return BP_Groups_Group::get_active( $limit, $page, $user_id, $search_terms, $populate_extras );
     1738}
     1739
     1740function groups_get_popular( $limit = null, $page = 1, $user_id = false, $search_terms = false, $populate_extras = true ) {
     1741    return BP_Groups_Group::get_popular( $limit, $page, $user_id, $search_terms, $populate_extras );
     1742}
     1743
     1744function groups_get_random_groups( $limit = null, $page = 1, $user_id = false, $search_terms = false, $populate_extras = true ) {
     1745    return BP_Groups_Group::get_random( $limit, $page, $user_id, $search_terms, $populate_extras );
     1746}
     1747
     1748function groups_get_alphabetically( $limit = null, $page = 1, $user_id = false, $search_terms = false, $populate_extras = true ) {
     1749    return BP_Groups_Group::get_alphabetically( $limit, $page, $user_id, $search_terms, $populate_extras );
     1750}
     1751
     1752function groups_get_by_most_forum_topics( $limit = null, $page = 1, $user_id = false, $search_terms = false, $populate_extras = true ) {
     1753    return BP_Groups_Group::get_by_most_forum_topics( $limit, $page, $user_id, $search_terms, $populate_extras );
     1754}
     1755
     1756function groups_get_by_most_forum_posts( $limit = null, $page = 1, $user_id = false, $search_terms = false, $populate_extras = true ) {
     1757    return BP_Groups_Group::get_by_most_forum_posts( $limit, $page, $user_id, $search_terms, $populate_extras );
    17581758}
    17591759
  • trunk/bp-groups/bp-groups-templatetags.php

    r2695 r2700  
    224224    extract( $r );
    225225
    226     $groups_template = new BP_Groups_Template( (int)$user_id, $type, (int)$page, (int)$per_page, (int)$max, $slug, $search_terms, (int)$populate_extras );
     226    $groups_template = new BP_Groups_Template( (int)$user_id, $type, (int)$page, (int)$per_page, (int)$max, $slug, $search_terms, (bool)$populate_extras );
    227227    return apply_filters( 'bp_has_groups', $groups_template->has_groups(), &$groups_template );
    228228}
Note: See TracChangeset for help on using the changeset viewer.