Skip to:
Content

BuddyPress.org

Changeset 1188


Ignore:
Timestamp:
03/09/2009 08:19:29 PM (16 years ago)
Author:
apeatling
Message:

Fixes #554

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/buddypress-theme/buddypress-home/functions.php

    r1052 r1188  
    5555        query_posts($query_string);
    5656       
    57         $single_check = strpos( $query_string, '&name=' );
    58        
    59         if ( $single_check === false )
     57        if ( is_single() )
     58            bp_core_load_template( 'single', true );
     59        else if ( is_category() || is_search() || is_day() || is_month() || is_year() )
     60            bp_core_load_template( 'archive', true );
     61        else
    6062            bp_core_load_template( 'index', true );
    61         else
    62             bp_core_load_template( 'single', true );           
    6363    }
    6464}
Note: See TracChangeset for help on using the changeset viewer.