Skip to:
Content

BuddyPress.org

Changeset 2905


Ignore:
Timestamp:
04/09/2010 03:56:26 PM (14 years ago)
Author:
mrmaz
Message:

fixes #2261

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-templatetags.php

    r2863 r2905  
    986986
    987987function bp_search_form_type_select() {
     988    global $bp;
     989   
    988990    // Eventually this won't be needed and a page will be built to integrate all search results.
    989991    $selection_box = '<select name="search-which" id="search-which" style="width: auto">';
    990992
    991     if ( function_exists( 'xprofile_install' ) ) {
     993    if ( bp_is_active( 'xprofile' ) ) {
    992994        $selection_box .= '<option value="members">' . __( 'Members', 'buddypress' ) . '</option>';
    993995    }
    994996
    995     if ( function_exists( 'groups_install' ) ) {
     997    if ( bp_is_active( 'groups' ) ) {
    996998        $selection_box .= '<option value="groups">' . __( 'Groups', 'buddypress' ) . '</option>';
    997999    }
    9981000
    999     if ( function_exists( 'bp_forums_setup' ) && !(int) $bp->site_options['bp-disable-forum-directory'] ) {
     1001    if ( function_exists( 'bp_forums_is_installed_correctly' ) && bp_forums_is_installed_correctly() && !(int) $bp->site_options['bp-disable-forum-directory'] ) {
    10001002        $selection_box .= '<option value="forums">' . __( 'Forums', 'buddypress' ) . '</option>';
    10011003    }
    10021004
    1003     if ( function_exists( 'bp_blogs_install' ) && bp_core_is_multisite() ) {
     1005    if ( bp_is_active( 'blogs' ) && bp_core_is_multisite() ) {
    10041006        $selection_box .= '<option value="blogs">' . __( 'Blogs', 'buddypress' ) . '</option>';
    10051007    }
Note: See TracChangeset for help on using the changeset viewer.