Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/11/2011 09:39:41 PM (14 years ago)
Author:
johnjamesjacoby
Message:

Prevent some potential debug notices in bp-groups-loader.php.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups/bp-groups-loader.php

    r5516 r5518  
    254254        global $bp;
    255255
     256        // Define local variables
     257        $main_nav = $sub_nav = array();
     258
    256259        // Add 'Groups' to the main navigation
    257260        $main_nav = array(
     
    414417
    415418            // Pending group invites
    416             $count = groups_get_invites_for_user( bp_loggedin_user_id() );
     419            $count   = groups_get_invites_for_user( bp_loggedin_user_id() );
     420            $title   = __( 'Groups',             'buddypress' );
     421            $pending = __( 'No Pending Invites', 'buddypress' );
    417422
    418423            if ( !empty( $count->total ) ) {
    419424                $title   = sprintf( __( 'Groups <span class="count">%s</span>',          'buddypress' ), $count->total );
    420425                $pending = sprintf( __( 'Pending Invites <span class="count">%s</span>', 'buddypress' ), $count->total );
    421             } else {
    422                 $title   = __( 'Groups',             'buddypress' );
    423                 $pending = __( 'No Pending Invites', 'buddypress' );
    424426            }
    425427
Note: See TracChangeset for help on using the changeset viewer.