Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/11/2012 04:42:04 AM (14 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-screens.php

    r5416 r5712  
    11<?php
     2
    23/**
     4 * BuddyPress Friends Screen Functions
     5 *
    36 * Screen functions are the controllers of BuddyPress. They will execute when their
    47 * specific URL is caught. They will first save or manipulate data using business
    58 * functions, then pass on the user to a template file.
     9 *
     10 * @package BuddyPress
     11 * @subpackage FriendsScreens
    612 */
    713
     
    5359
    5460function friends_screen_notification_settings() {
    55     global $bp;
    5661
    5762    if ( !$send_requests = bp_get_user_meta( bp_displayed_user_id(), 'notification_friends_friendship_request', true ) )
     
    5964
    6065    if ( !$accept_requests = bp_get_user_meta( bp_displayed_user_id(), 'notification_friends_friendship_accepted', true ) )
    61         $accept_requests = 'yes';
    62 ?>
     66        $accept_requests = 'yes'; ?>
    6367
    6468    <table class="notification-settings" id="friends-notification-settings">
Note: See TracChangeset for help on using the changeset viewer.