Changeset 7628 for trunk/bp-notifications/bp-notifications-adminbar.php
- Timestamp:
- 11/30/2013 06:47:24 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-notifications/bp-notifications-adminbar.php
r7545 r7628 25 25 } 26 26 27 $notifications = bp_ core_get_notifications_for_user( bp_loggedin_user_id(), 'object' );27 $notifications = bp_notifications_get_notifications_for_user( bp_loggedin_user_id(), 'object' ); 28 28 $count = ! empty( $notifications ) ? count( $notifications ) : 0; 29 29 $alert_class = (int) $count > 0 ? 'pending-count alert' : 'count no-alert'; 30 $menu_title = '<span id="ab-pending-notifications" class="' . $alert_class . '">' . $count. '</span>';30 $menu_title = '<span id="ab-pending-notifications" class="' . $alert_class . '">' . number_format_i18n( $count ) . '</span>'; 31 31 $menu_link = trailingslashit( bp_loggedin_user_domain() . bp_get_notifications_slug() ); 32 32
Note: See TracChangeset
for help on using the changeset viewer.