Skip to:
Content

BuddyPress.org

Changeset 2695 for trunk/bp-friends.php


Ignore:
Timestamp:
02/12/2010 12:31:49 PM (15 years ago)
Author:
apeatling
Message:

Fixing the use of deprecated template tags in bp-default. Merged the fetching of BP runtime settings into one query to significantly reduce the number of run time database hits. Fixed #1916

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-friends.php

    r2678 r2695  
    4949}
    5050add_action( 'bp_setup_globals', 'friends_setup_globals' );
    51 add_action( 'admin_menu', 'friends_setup_globals', 2 );
    5251
    5352function friends_check_installed() {
     
    5857
    5958    /* Need to check db tables exist, activate hook no-worky in mu-plugins folder. */
    60     if ( get_site_option('bp-friends-db-version') < BP_FRIENDS_DB_VERSION )
     59    if ( $bp->site_options['bp-friends-db-version'] < BP_FRIENDS_DB_VERSION )
    6160        friends_install();
    6261}
Note: See TracChangeset for help on using the changeset viewer.