Skip to:
Content

BuddyPress.org


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-activity/bp-activity-templatetags.php

    r2692 r2695  
    2323
    2424        /* Check if blog/forum replies are disabled */
    25         $this->disable_blogforum_replies = get_site_option( 'bp-disable-blogforum-comments' );
     25        $this->disable_blogforum_replies = $bp->site_options['bp-disable-blogforum-comments'];
    2626
    2727        /* Get an array of the logged in user's favorite activities */
     
    165165        'sort' => 'DESC', // sort DESC or ASC
    166166        'page' => 1, // which page to load
    167         'per_page' => 25, // number of items per page
     167        'per_page' => 20, // number of items per page
    168168        'max' => false, // max number to return
    169169        'show_hidden' => $show_hidden, // Show activity items that are hidden site-wide?
Note: See TracChangeset for help on using the changeset viewer.