Skip to:
Content

BuddyPress.org

Changeset 2695 for trunk/bp-messages.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-messages.php

    r2678 r2695  
    8484}
    8585add_action( 'bp_setup_globals', 'messages_setup_globals' );
    86 add_action( 'admin_menu', 'messages_setup_globals', 2 );
    8786
    8887function messages_check_installed() {
     
    9392
    9493    /* Need to check db tables exist, activate hook no-worky in mu-plugins folder. */
    95     if ( get_site_option('bp-messages-db-version') < BP_MESSAGES_DB_VERSION )
     94    if ( $bp->site_options['bp-messages-db-version'] < BP_MESSAGES_DB_VERSION )
    9695        messages_install();
    9796}
Note: See TracChangeset for help on using the changeset viewer.