Skip to:
Content

BuddyPress.org

Changeset 3114


Ignore:
Timestamp:
07/02/2010 07:20:56 PM (15 years ago)
Author:
johnjamesjacoby
Message:

Fixes #2491 props kunalb

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.2/bp-core/bp-core-catchuri.php

    r3103 r3114  
    256256        bp_core_redirect( $bp->root_domain );
    257257
     258    // Add .php to all options in $bp_path
     259    foreach( (array) $bp_path as $template )
     260        $filtered_templates[] = "$template.php";
     261
    258262    // If the template file doesn't exist, redirect to the root domain.
    259     if ( !bp_is_blog_page() && !file_exists( apply_filters( 'bp_located_template', locate_template( array( $bp_path . '.php' ), false ), array( $bp_path . '.php' ) ) ) )
     263    if ( !bp_is_blog_page() && !file_exists( apply_filters( 'bp_located_template', locate_template( $filtered_templates, false ), $filtered_templates ) ) )
    260264        bp_core_redirect( $bp->root_domain );
    261265
Note: See TracChangeset for help on using the changeset viewer.