Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/11/2012 04:42:04 AM (13 years ago)
Author:
johnjamesjacoby
Message:

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

File:
1 edited

Legend:

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

    r5437 r5712  
    11<?php
     2
    23/**
    3  * These functions handle the recording, deleting and formatting of activity and
    4  * notifications for the user and for this specific component.
     4 * BuddyPress Friends Activity Functions
     5 *
     6 * These functions handle the recording, deleting and formatting of activity
     7 * for the user and for this specific component.
     8 *
     9 * @package BuddyPress
     10 * @subpackage FriendsActivity
    511 */
    612
     
    3743
    3844    if ( bp_is_active( 'activity' ) ) {
    39         extract( (array)$args );
     45        extract( (array) $args );
    4046        bp_activity_delete_by_item_id( array( 'item_id' => $item_id, 'component' => $bp->friends->id, 'type' => $type, 'user_id' => $user_id ) );
    4147    }
     
    7177 */
    7278function friends_format_notifications( $action, $item_id, $secondary_item_id, $total_items, $format = 'string' ) {
    73     global $bp;
    7479
    7580    switch ( $action ) {
     
    110115            'link' => $link,
    111116            'text' => $text
    112         ), (int)$total_items );
     117        ), (int) $total_items );
    113118    }
    114119
Note: See TracChangeset for help on using the changeset viewer.