Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/12/2009 07:27:53 PM (18 years ago)
Author:
apeatling
Message:

Replaced switch_to_blog( $current_blog->blog_id ) with restore_current_blog() calls. Typeset the tags blog id for the site wide tags plugin that should stop the infinite loop problem. Fixes #175

File:
1 edited

Legend:

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

    r805 r833  
    223223
    224224function bp_core_avatar_upload_dir( $upload, $user_id = false ) {
    225         global $bp, $current_blog;
     225        global $bp;
    226226
    227227        if ( !$user_id )
     
    244244       
    245245        // Switch back to the current blog
    246         switch_to_blog($current_blog->blog_id);
     246        restore_current_blog();
    247247
    248248        return array( 'path' => $newdir, 'url' => $newurl, 'subdir' => $newsubdir, 'basedir' => $newbdir, 'baseurl' => $newburl, 'error' => false );
Note: See TracChangeset for help on using the changeset viewer.