# This patch file was generated by NetBeans IDE
# Following Index: paths are relative to: \\UBU\www\sandbox2\public_html\wp-content\plugins\buddypress\bp-core
# This patch can be applied using context Tools: Patch action on respective folder.
# It uses platform neutral UTF-8 encoding and \n newlines.
# Above lines and this line are ignored by the patching process.
Index: bp-core-catchuri.php
--- bp-core-catchuri.php Base (BASE)
+++ bp-core-catchuri.php Locally Modified (Based On LOCAL)
@@ -254,7 +254,7 @@
 		bp_core_redirect( $bp->root_domain );
 
 	// If the template file doesn't exist, redirect to the root domain.
-	if ( !bp_is_blog_page() && !file_exists( locate_template( array( $bp_path . '.php' ), false ) ) )
\ No newline at end of file
+	if ( !bp_is_blog_page() && !file_exists( apply_filters( 'bp_located_template', locate_template( array( $bp_path . '.php' ), false ), $bp_path ) ) )
\ No newline at end of file
 		bp_core_redirect( $bp->root_domain );
 
 	if ( !$bp_path && !bp_is_blog_page() ) {
