Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/09/2012 10:10:47 PM (13 years ago)
Author:
johnjamesjacoby
Message:

Remove unneeded globals and clean up some code in Activity component. See #3989.

File:
1 edited

Legend:

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

    r5595 r5684  
    1919 * @param int $receiver_user_id The unique user_id of the user who is receiving the update
    2020 *
    21  * @global object $bp BuddyPress global settings
    2221 * @uses bp_core_add_notification()
    2322 * @uses bp_get_user_meta()
     
    4039 */
    4140function bp_activity_at_message_notification( $activity_id, $receiver_user_id ) {
    42     global $bp;
    4341   
    4442    // Don't leave multiple notifications for the same activity item
     
    120118 * @param array $params {@link bp_activity_new_comment()}
    121119 *
    122  * @global object $bp BuddyPress global settings
    123120 * @uses bp_get_user_meta()
    124121 * @uses bp_core_get_user_displayname()
     
    142139 */
    143140function bp_activity_new_comment_notification( $comment_id, $commenter_id, $params ) {
    144     global $bp;
     141
     142    // Set some default parameters
     143    $activity_id = 0;
     144    $parent_id   = 0;
    145145
    146146    extract( $params );
Note: See TracChangeset for help on using the changeset viewer.