Skip to:
Content

BuddyPress.org

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

    r2678 r2695  
    2121
    2222    $bp->forums->image_base = BP_PLUGIN_URL . '/bp-forums/images';
    23     $bp->forums->bbconfig = get_site_option( 'bb-config-location' );
     23    $bp->forums->bbconfig = $bp->site_options['bb-config-location'];
    2424    $bp->forums->slug = BP_FORUMS_SLUG;
    2525
     
    3030}
    3131add_action( 'bp_setup_globals', 'bp_forums_setup' );
    32 add_action( 'admin_head', 'bp_forums_setup', 2 );
    3332
    3433function bp_forums_is_installed_correctly() {
     
    5150
    5251    if ( $bp->current_component == $bp->forums->slug ) {
    53         if ( (int) get_site_option( 'bp-disable-forum-directory' ) || !function_exists( 'groups_install' ) )
     52        if ( (int) $bp->site_options['bp-disable-forum-directory'] || !function_exists( 'groups_install' ) )
    5453            return false;
    5554
Note: See TracChangeset for help on using the changeset viewer.