Skip to:
Content

BuddyPress.org

Changeset 7936


Ignore:
Timestamp:
02/19/2014 08:21:37 PM (10 years ago)
Author:
r-a-y
Message:

Fix notification count when a user with 'bp_moderate' views a profile.

File:
1 edited

Legend:

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

    r7813 r7936  
    106106
    107107        // Add 'Notifications' to the main navigation
    108         $count    = bp_notifications_get_unread_notification_count( bp_loggedin_user_id() );
     108        $count    = bp_notifications_get_unread_notification_count( bp_displayed_user_id() );
    109109        $class    = ( 0 === $count ) ? 'no-count' : 'count';
    110110        $main_nav = array(
Note: See TracChangeset for help on using the changeset viewer.