Skip to:
Content

BuddyPress.org

Changeset 1963


Ignore:
Timestamp:
09/26/2009 08:02:20 AM (17 years ago)
Author:
apeatling
Message:

Fixing "Missing bp-themes" error when viewing BuddyPress general settings from another blog other than the root blog.

File:
1 edited

Legend:

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

    r1905 r1963  
    22
    33function bp_core_admin_settings() {
    4     global $wpdb, $bp;
     4    global $wpdb, $bp, $current_blog;
    55?>
    66   
     
    102102                </tr>               
    103103                <?php endif; ?>
    104                            
    105                 <?php if ( !locate_template( array( 'registration/register.php' ) ) ) : ?>
     104
     105                <?php if ( '' == locate_template( array( 'registration/register.php' ), false ) && $current_blog->blog_id == BP_ROOT_BLOG ) : ?>
    106106                <tr>
    107107                    <th scope="row"><?php _e('Select theme to use for BuddyPress generated pages', 'buddypress' ) ?>:</th>
Note: See TracChangeset for help on using the changeset viewer.