<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fc0 solid; padding: 6px; }
#msg ul, pre { overflow: auto; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<title>[BuddyPress] [1906] trunk: Fixes #997 props Detective, Jason_JM</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd>1906</dd>
<dt>Author</dt> <dd>apeatling</dd>
<dt>Date</dt> <dd>2009-09-21 17:35:43 +0000 (Mon, 21 Sep 2009)</dd>
</dl>

<h3>Log Message</h3>
<pre>Fixes #997 props Detective, Jason_JM</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkbpblogsadmintabsbpblogscommentstabphp">trunk/bp-blogs/admin-tabs/bp-blogs-comments-tab.php</a></li>
<li><a href="#trunkbpblogsadmintabsbpblogspoststabphp">trunk/bp-blogs/admin-tabs/bp-blogs-posts-tab.php</a></li>
<li><a href="#trunkbpblogsadmintabsbpblogstabphp">trunk/bp-blogs/admin-tabs/bp-blogs-tab.php</a></li>
<li><a href="#trunkbpblogsdeprecatedbpblogsdeprecatedphp">trunk/bp-blogs/deprecated/bp-blogs-deprecated.php</a></li>
<li><a href="#trunkbpcorebpcoresignupphp">trunk/bp-core/bp-core-signup.php</a></li>
<li><a href="#trunkbpcorebpcoretemplatetagsphp">trunk/bp-core/bp-core-templatetags.php</a></li>
<li><a href="#trunkbpcoredeprecatedbpcoredeprecatedphp">trunk/bp-core/deprecated/bp-core-deprecated.php</a></li>
<li><a href="#trunkbpgroupsbpgroupsclassesphp">trunk/bp-groups/bp-groups-classes.php</a></li>
<li><a href="#trunkbpgroupsdeprecatedbpgroupsdeprecatedphp">trunk/bp-groups/deprecated/bp-groups-deprecated.php</a></li>
<li><a href="#trunkbpgroupsphp">trunk/bp-groups.php</a></li>
<li><a href="#trunkbpstatusbpstatustemplatetagsphp">trunk/bp-status/bp-status-templatetags.php</a></li>
<li><a href="#trunkbpxprofilebpxprofiletemplatetagsphp">trunk/bp-xprofile/bp-xprofile-templatetags.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkbpblogsadmintabsbpblogscommentstabphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-blogs/admin-tabs/bp-blogs-comments-tab.php (1905 => 1906)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-blogs/admin-tabs/bp-blogs-comments-tab.php        2009-09-21 17:24:11 UTC (rev 1905)
+++ trunk/bp-blogs/admin-tabs/bp-blogs-comments-tab.php        2009-09-21 17:35:43 UTC (rev 1906)
</span><span class="lines">@@ -1,3 +1,3 @@
</span><span class="cx"> &lt;div class=&quot;wrap&quot;&gt;
</span><del>-&lt;?php require( TEMPLATEPATH . &quot;/blogs/recent-comments.php&quot; ); ?&gt;
</del><ins>+&lt;?php locate_template( array( 'blogs/recent-comments.php' ), true ); ?&gt;
</ins><span class="cx"> &lt;/div&gt;
</span><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkbpblogsadmintabsbpblogspoststabphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-blogs/admin-tabs/bp-blogs-posts-tab.php (1905 => 1906)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-blogs/admin-tabs/bp-blogs-posts-tab.php        2009-09-21 17:24:11 UTC (rev 1905)
+++ trunk/bp-blogs/admin-tabs/bp-blogs-posts-tab.php        2009-09-21 17:35:43 UTC (rev 1906)
</span><span class="lines">@@ -1,3 +1,3 @@
</span><span class="cx"> &lt;div class=&quot;wrap&quot;&gt;
</span><del>-&lt;?php require( TEMPLATEPATH . &quot;/blogs/recent-posts.php&quot; ); ?&gt;
</del><ins>+&lt;?php locate_template( array( 'blogs/recent-posts.php' ), true ); ?&gt;
</ins><span class="cx"> &lt;/div&gt;
</span><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkbpblogsadmintabsbpblogstabphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-blogs/admin-tabs/bp-blogs-tab.php (1905 => 1906)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-blogs/admin-tabs/bp-blogs-tab.php        2009-09-21 17:24:11 UTC (rev 1905)
+++ trunk/bp-blogs/admin-tabs/bp-blogs-tab.php        2009-09-21 17:35:43 UTC (rev 1906)
</span><span class="lines">@@ -1,3 +1,3 @@
</span><span class="cx"> &lt;div class=&quot;wrap&quot;&gt;
</span><del>-&lt;?php require( TEMPLATEPATH . &quot;/blogs/my-blogs.php&quot; ); ?&gt;
</del><ins>+&lt;?php locate_template( array( 'blogs/my-blogs.php' ), true ); ?&gt;
</ins><span class="cx"> &lt;/div&gt;
</span><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkbpblogsdeprecatedbpblogsdeprecatedphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-blogs/deprecated/bp-blogs-deprecated.php (1905 => 1906)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-blogs/deprecated/bp-blogs-deprecated.php        2009-09-21 17:24:11 UTC (rev 1905)
+++ trunk/bp-blogs/deprecated/bp-blogs-deprecated.php        2009-09-21 17:35:43 UTC (rev 1906)
</span><span class="lines">@@ -96,7 +96,7 @@
</span><span class="cx">                 
</span><span class="cx">         check_ajax_referer('directory_blogs');
</span><span class="cx">         
</span><del>-        load_template( TEMPLATEPATH . '/directories/blogs/blogs-loop.php' );
</del><ins>+        locate_template( array( 'directories/blogs/blogs-loop.php' ), true );
</ins><span class="cx"> }
</span><span class="cx"> add_action( 'wp_ajax_directory_blogs', 'bp_blogs_ajax_directory_blogs' );
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkbpcorebpcoresignupphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-core/bp-core-signup.php (1905 => 1906)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-core/bp-core-signup.php        2009-09-21 17:24:11 UTC (rev 1905)
+++ trunk/bp-core/bp-core-signup.php        2009-09-21 17:35:43 UTC (rev 1906)
</span><span class="lines">@@ -210,7 +210,7 @@
</span><span class="cx">         if ( false === strpos( $_SERVER['SCRIPT_NAME'], 'wp-signup.php') )
</span><span class="cx">                 return false;
</span><span class="cx">                 
</span><del>-        if ( file_exists( TEMPLATEPATH . '/registration/register.php' ) || file_exists( TEMPLATEPATH . '/register.php' ) )
</del><ins>+        if ( '' != locate_template( array( 'registration/register.php' ), false ) || '' != locate_template( array( 'register.php' ), false ) )
</ins><span class="cx">                 die;
</span><span class="cx"> }
</span><span class="cx"> add_action( 'signup_header', 'bp_core_wpsignup_redirect' );
</span></span></pre></div>
<a id="trunkbpcorebpcoretemplatetagsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-core/bp-core-templatetags.php (1905 => 1906)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-core/bp-core-templatetags.php        2009-09-21 17:24:11 UTC (rev 1905)
+++ trunk/bp-core/bp-core-templatetags.php        2009-09-21 17:35:43 UTC (rev 1906)
</span><span class="lines">@@ -452,8 +452,7 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> function bp_get_plugin_sidebar() {
</span><del>-        if ( file_exists(TEMPLATEPATH . '/plugin-sidebar.php' ) )
-                locate_template( array( '/plugin-sidebar.php' ), true );
</del><ins>+        locate_template( array( 'plugin-sidebar.php' ), true );
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> function bp_is_blog_page() {
</span><span class="lines">@@ -683,7 +682,7 @@
</span><span class="cx">         if ( $hide_on_directory &amp;&amp; $bp-&gt;is_directory )
</span><span class="cx">                 return false;
</span><span class="cx">         
</span><del>-        include_once( TEMPLATEPATH . '/userbar.php' );
</del><ins>+        locate_template( array( 'userbar.php' ), true );
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> function bp_get_optionsbar( $hide_on_directory = true ) {
</span><span class="lines">@@ -691,8 +690,8 @@
</span><span class="cx">         
</span><span class="cx">         if ( $hide_on_directory &amp;&amp; $bp-&gt;is_directory )
</span><span class="cx">                 return false;
</span><del>-        
-        include_once( TEMPLATEPATH . '/optionsbar.php' );
</del><ins>+                
+        locate_template( array( 'optionsbar.php' ), true );
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> function bp_is_directory() {
</span></span></pre></div>
<a id="trunkbpcoredeprecatedbpcoredeprecatedphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-core/deprecated/bp-core-deprecated.php (1905 => 1906)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-core/deprecated/bp-core-deprecated.php        2009-09-21 17:24:11 UTC (rev 1905)
+++ trunk/bp-core/deprecated/bp-core-deprecated.php        2009-09-21 17:35:43 UTC (rev 1906)
</span><span class="lines">@@ -893,7 +893,7 @@
</span><span class="cx">                 
</span><span class="cx">         check_ajax_referer('directory_members');
</span><span class="cx">         
</span><del>-        load_template( TEMPLATEPATH . '/directories/members/members-loop.php' );
</del><ins>+        locate_template( array( 'directories/members/members-loop.php' ), true );
</ins><span class="cx"> }
</span><span class="cx"> add_action( 'wp_ajax_directory_members', 'bp_core_ajax_directory_members' );
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkbpgroupsbpgroupsclassesphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-groups/bp-groups-classes.php (1905 => 1906)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-groups/bp-groups-classes.php        2009-09-21 17:24:11 UTC (rev 1905)
+++ trunk/bp-groups/bp-groups-classes.php        2009-09-21 17:35:43 UTC (rev 1906)
</span><span class="lines">@@ -989,7 +989,7 @@
</span><span class="cx">                                 add_action( 'wp', array( &amp;$this, 'edit_screen_save' ) );
</span><span class="cx">                                 add_action( 'groups_custom_edit_steps', array( &amp;$this, 'edit_screen' ) );
</span><span class="cx"> 
</span><del>-                                if ( file_exists( TEMPLATEPATH . '/groups/single/admin.php' ) ) {
</del><ins>+                                if ( '' != locate_template( array( 'groups/single/admin.php' ), false ) ) {
</ins><span class="cx">                                         bp_core_load_template( apply_filters( 'groups_template_group_admin', 'groups/single/admin' ) );                
</span><span class="cx">                                 } else {
</span><span class="cx">                                         add_action( 'bp_template_content_header', create_function( '', 'echo &quot;&lt;ul class=\&quot;content-header-nav\&quot;&gt;&quot;; bp_group_admin_tabs(); echo &quot;&lt;/ul&gt;&quot;;' ) );
</span></span></pre></div>
<a id="trunkbpgroupsdeprecatedbpgroupsdeprecatedphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-groups/deprecated/bp-groups-deprecated.php (1905 => 1906)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-groups/deprecated/bp-groups-deprecated.php        2009-09-21 17:24:11 UTC (rev 1905)
+++ trunk/bp-groups/deprecated/bp-groups-deprecated.php        2009-09-21 17:35:43 UTC (rev 1906)
</span><span class="lines">@@ -671,7 +671,7 @@
</span><span class="cx">                 
</span><span class="cx">         check_ajax_referer( 'group-filter-box' );
</span><span class="cx">         
</span><del>-        load_template( TEMPLATEPATH . '/groups/group-loop.php' );
</del><ins>+        locate_template( array( 'groups/group-loop.php' ), true );
</ins><span class="cx"> }
</span><span class="cx"> add_action( 'wp_ajax_group_filter', 'groups_ajax_group_filter' );
</span><span class="cx"> 
</span><span class="lines">@@ -779,7 +779,7 @@
</span><span class="cx">                 
</span><span class="cx">         check_ajax_referer('directory_groups');
</span><span class="cx"> 
</span><del>-        load_template( TEMPLATEPATH . '/directories/groups/groups-loop.php' );
</del><ins>+        locate_template( array( 'directories/groups/groups-loop.php' ), true );
</ins><span class="cx"> }
</span><span class="cx"> add_action( 'wp_ajax_directory_groups', 'bp_core_ajax_directory_groups' );
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkbpgroupsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-groups.php (1905 => 1906)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-groups.php        2009-09-21 17:24:11 UTC (rev 1905)
+++ trunk/bp-groups.php        2009-09-21 17:35:43 UTC (rev 1906)
</span><span class="lines">@@ -374,7 +374,7 @@
</span><span class="cx"> 
</span><span class="cx">         do_action( 'groups_screen_group_invites', $group_id );
</span><span class="cx">         
</span><del>-        if ( file_exists( TEMPLATEPATH . '/groups/invites.php' ) )
</del><ins>+        if ( '' != locate_template( array( 'groups/invites.php' ), false ) )
</ins><span class="cx">                 bp_core_load_template( apply_filters( 'groups_template_group_invites', 'groups/invites' ) );
</span><span class="cx">         else
</span><span class="cx">                 bp_core_load_template( apply_filters( 'groups_template_group_invites', 'groups/list-invites' ) );                
</span><span class="lines">@@ -564,7 +564,7 @@
</span><span class="cx"> 
</span><span class="cx">                 do_action( 'groups_screen_group_home' );        
</span><span class="cx">                 
</span><del>-                if ( file_exists( TEMPLATEPATH . '/groups/single/home.php' ) )
</del><ins>+                if ( '' != locate_template( array( 'groups/single/home.php' ), false ) )
</ins><span class="cx">                         bp_core_load_template( apply_filters( 'groups_template_group_home', 'groups/single/home' ) );
</span><span class="cx">                 else
</span><span class="cx">                         bp_core_load_template( apply_filters( 'groups_template_group_home', 'groups/group-home' ) );
</span><span class="lines">@@ -730,7 +730,7 @@
</span><span class="cx"> 
</span><span class="cx">                         /* Standard topic display */
</span><span class="cx">                         else {
</span><del>-                                if ( file_exists( TEMPLATEPATH . '/groups/single/forum/topic.php' ) )
</del><ins>+                                if ( '' != locate_template( array( 'groups/single/forum/topic.php' ), false ) )
</ins><span class="cx">                                         bp_core_load_template( apply_filters( 'groups_template_group_forum_topic', 'groups/single/forum/topic' ) );
</span><span class="cx">                                 else
</span><span class="cx">                                         bp_core_load_template( apply_filters( 'groups_template_group_forum_topic', 'groups/forum/topic' ) );
</span><span class="lines">@@ -756,7 +756,7 @@
</span><span class="cx">                         
</span><span class="cx">                         do_action( 'groups_screen_group_forum', $topic_id, $forum_id );
</span><span class="cx">                         
</span><del>-                        if ( file_exists( TEMPLATEPATH . '/groups/single/forum/index.php' ) )
</del><ins>+                        if ( '' != locate_template( array( 'groups/single/forum/index.php' ), false ) )
</ins><span class="cx">                                 bp_core_load_template( apply_filters( 'groups_template_group_forum', 'groups/single/forum/index' ) );
</span><span class="cx">                         else
</span><span class="cx">                                 bp_core_load_template( apply_filters( 'groups_template_group_forum', 'groups/forum/index' ) );                                
</span><span class="lines">@@ -803,12 +803,12 @@
</span><span class="cx">                                 bp_core_redirect( bp_get_group_permalink( $bp-&gt;groups-&gt;current_group ) . '/' . $bp-&gt;wire-&gt;slug );
</span><span class="cx">                 
</span><span class="cx">                 } else if ( ( !$wire_action || 'latest' == $bp-&gt;action_variables[1] ) ) {
</span><del>-                        if ( file_exists( TEMPLATEPATH . '/groups/single/wire.php' ) )
</del><ins>+                        if ( '' != locate_template( array( 'groups/single/wire.php' ), false ) )
</ins><span class="cx">                                 bp_core_load_template( apply_filters( 'groups_template_group_wire', 'groups/single/wire' ) );
</span><span class="cx">                         else        
</span><span class="cx">                                 bp_core_load_template( apply_filters( 'groups_template_group_wire', 'groups/wire' ) );
</span><span class="cx">                 } else {
</span><del>-                        if ( file_exists( TEMPLATEPATH . '/groups/single/home.php' ) )
</del><ins>+                        if ( '' != locate_template( array( 'groups/single/home.php' ), false ) )
</ins><span class="cx">                                 bp_core_load_template( apply_filters( 'groups_template_group_home', 'groups/single/home' ) );
</span><span class="cx">                         else        
</span><span class="cx">                                 bp_core_load_template( apply_filters( 'groups_template_group_home', 'groups/group-home' ) );
</span><span class="lines">@@ -822,7 +822,7 @@
</span><span class="cx">         if ( $bp-&gt;is_single_item ) {
</span><span class="cx">                 do_action( 'groups_screen_group_members', $bp-&gt;groups-&gt;current_group-&gt;id );
</span><span class="cx"> 
</span><del>-                if ( file_exists( TEMPLATEPATH . '/groups/single/members.php' ) )
</del><ins>+                if ( '' != locate_template( array( 'groups/single/members.php' ), false ) )
</ins><span class="cx">                         bp_core_load_template( apply_filters( 'groups_template_group_forum', 'groups/single/members' ) );
</span><span class="cx">                 else
</span><span class="cx">                         bp_core_load_template( apply_filters( 'groups_template_group_forum', 'groups/list-members' ) );                
</span><span class="lines">@@ -848,7 +848,7 @@
</span><span class="cx">                         bp_core_redirect( bp_get_group_permalink( $bp-&gt;groups-&gt;current_group ) );
</span><span class="cx">                 } else {
</span><span class="cx">                         // Show send invite page
</span><del>-                        if ( file_exists( TEMPLATEPATH . '/groups/single/send-invite.php' ) )
</del><ins>+                        if ( '' != locate_template( array( 'groups/single/send-invite.php' ), false ) )
</ins><span class="cx">                                 bp_core_load_template( apply_filters( 'groups_template_group_invite', 'groups/single/send-invite' ) );        
</span><span class="cx">                         else
</span><span class="cx">                                 bp_core_load_template( apply_filters( 'groups_template_group_invite', 'groups/send-invite' ) );        
</span><span class="lines">@@ -886,7 +886,7 @@
</span><span class="cx">                         do_action( 'groups_screen_group_leave', $bp-&gt;groups-&gt;current_group-&gt;id );
</span><span class="cx">                         
</span><span class="cx">                         // Show leave group page
</span><del>-                        if ( file_exists( TEMPLATEPATH . '/groups/single/leave-confirm.php' ) )
</del><ins>+                        if ( '' != locate_template( array( 'groups/single/leave-confirm.php' ), false ) )
</ins><span class="cx">                                 bp_core_load_template( apply_filters( 'groups_template_group_leave', 'groups/single/leave-confirm' ) );
</span><span class="cx">                         else
</span><span class="cx">                                 bp_core_load_template( apply_filters( 'groups_template_group_leave', 'groups/leave-group-confirm' ) );                                
</span><span class="lines">@@ -917,7 +917,7 @@
</span><span class="cx">                 
</span><span class="cx">                 do_action( 'groups_screen_group_request_membership', $bp-&gt;groups-&gt;current_group-&gt;id );
</span><span class="cx">                 
</span><del>-                if ( file_exists( TEMPLATEPATH . '/groups/single/request-membership.php' ) )
</del><ins>+                if ( '' != locate_template( array( 'groups/single/request-membership.php' ), false ) )
</ins><span class="cx">                         bp_core_load_template( apply_filters( 'groups_template_group_request_membership', 'groups/single/request-membership' ) );
</span><span class="cx">                 else
</span><span class="cx">                         bp_core_load_template( apply_filters( 'groups_template_group_request_membership', 'groups/request-membership' ) );                        
</span><span class="lines">@@ -962,7 +962,7 @@
</span><span class="cx"> 
</span><span class="cx">                         do_action( 'groups_screen_group_admin_edit_details', $bp-&gt;groups-&gt;current_group-&gt;id );
</span><span class="cx"> 
</span><del>-                        if ( file_exists( TEMPLATEPATH . '/groups/single/admin.php' ) )
</del><ins>+                        if ( '' != locate_template( array( 'groups/single/admin.php' ), false ) )
</ins><span class="cx">                                 bp_core_load_template( apply_filters( 'groups_template_group_admin', 'groups/single/admin' ) );                
</span><span class="cx">                         else
</span><span class="cx">                                 bp_core_load_template( apply_filters( 'groups_template_group_admin', 'groups/admin/edit-details' ) );                        
</span><span class="lines">@@ -1006,7 +1006,7 @@
</span><span class="cx"> 
</span><span class="cx">                 do_action( 'groups_screen_group_admin_settings', $bp-&gt;groups-&gt;current_group-&gt;id );
</span><span class="cx">                 
</span><del>-                if ( file_exists( TEMPLATEPATH . '/groups/single/admin.php' ) )
</del><ins>+                if ( '' != locate_template( array( 'groups/single/admin.php' ), false ) )
</ins><span class="cx">                         bp_core_load_template( apply_filters( 'groups_template_group_admin_settings', 'groups/single/admin' ) );                
</span><span class="cx">                 else
</span><span class="cx">                         bp_core_load_template( apply_filters( 'groups_template_group_admin_settings', 'groups/admin/group-settings' ) );
</span><span class="lines">@@ -1067,7 +1067,7 @@
</span><span class="cx"> 
</span><span class="cx">                 do_action( 'groups_screen_group_admin_avatar', $bp-&gt;groups-&gt;current_group-&gt;id );        
</span><span class="cx">                 
</span><del>-                if ( file_exists( TEMPLATEPATH . '/groups/single/admin.php' ) )
</del><ins>+                if ( '' != locate_template( array( 'groups/single/admin.php' ), false ) )
</ins><span class="cx">                         bp_core_load_template( apply_filters( 'groups_template_group_admin_avatar', 'groups/single/admin' ) );                
</span><span class="cx">                 else
</span><span class="cx">                         bp_core_load_template( apply_filters( 'groups_template_group_admin_avatar', 'groups/admin/group-avatar' ) );                
</span><span class="lines">@@ -1162,7 +1162,7 @@
</span><span class="cx"> 
</span><span class="cx">                 do_action( 'groups_screen_group_admin_manage_members', $bp-&gt;groups-&gt;current_group-&gt;id );
</span><span class="cx">                 
</span><del>-                if ( file_exists( TEMPLATEPATH . '/groups/single/admin.php' ) )
</del><ins>+                if ( '' != locate_template( array( 'groups/single/admin.php' ), false ) )
</ins><span class="cx">                         bp_core_load_template( apply_filters( 'groups_template_group_admin_manage_members', 'groups/single/admin' ) );                
</span><span class="cx">                 else
</span><span class="cx">                         bp_core_load_template( apply_filters( 'groups_template_group_admin_manage_members', 'groups/admin/manage-members' ) );
</span><span class="lines">@@ -1219,7 +1219,7 @@
</span><span class="cx"> 
</span><span class="cx">                 do_action( 'groups_screen_group_admin_requests', $bp-&gt;groups-&gt;current_group-&gt;id );
</span><span class="cx"> 
</span><del>-                if ( file_exists( TEMPLATEPATH . '/groups/single/admin.php' ) )
</del><ins>+                if ( '' != locate_template( array( 'groups/single/admin.php' ), false ) )
</ins><span class="cx">                         bp_core_load_template( apply_filters( 'groups_template_group_admin_requests', 'groups/single/admin' ) );                
</span><span class="cx">                 else
</span><span class="cx">                         bp_core_load_template( apply_filters( 'groups_template_group_admin_requests', 'groups/admin/membership-requests' ) );                
</span><span class="lines">@@ -1256,7 +1256,7 @@
</span><span class="cx"> 
</span><span class="cx">                 do_action( 'groups_screen_group_admin_delete_group', $bp-&gt;groups-&gt;current_group-&gt;id );
</span><span class="cx"> 
</span><del>-                if ( file_exists( TEMPLATEPATH . '/groups/single/admin.php' ) )
</del><ins>+                if ( '' != locate_template( array( 'groups/single/admin.php' ), false ) )
</ins><span class="cx">                         bp_core_load_template( apply_filters( 'groups_template_group_admin_delete_group', 'groups/single/admin' ) );                
</span><span class="cx">                 else
</span><span class="cx">                         bp_core_load_template( apply_filters( 'groups_template_group_admin_delete_group', 'groups/admin/delete-group' ) );                
</span><span class="lines">@@ -1337,7 +1337,7 @@
</span><span class="cx">                 bp_core_redirect( bp_get_group_permalink( $bp-&gt;groups-&gt;current_group ) );
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        if ( file_exists( TEMPLATEPATH . '/groups/single/admin.php' ) )
</del><ins>+        if ( '' != locate_template( array( 'groups/single/admin.php' ), false ) )
</ins><span class="cx">                 bp_core_load_template( apply_filters( 'groups_template_group_home', 'groups/single/home' ) );                
</span><span class="cx">         else
</span><span class="cx">                 bp_core_load_template( apply_filters( 'groups_template_group_home', 'groups/group-home' ) );
</span></span></pre></div>
<a id="trunkbpstatusbpstatustemplatetagsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-status/bp-status-templatetags.php (1905 => 1906)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-status/bp-status-templatetags.php        2009-09-21 17:24:11 UTC (rev 1905)
+++ trunk/bp-status/bp-status-templatetags.php        2009-09-21 17:35:43 UTC (rev 1906)
</span><span class="lines">@@ -6,7 +6,7 @@
</span><span class="cx">          * to &quot;new&quot;.
</span><span class="cx">          */
</span><span class="cx">         if ( 'new' == $_GET['status'] &amp;&amp; is_user_logged_in() ) {
</span><del>-                load_template( TEMPLATEPATH . '/status/post-form.php' );
</del><ins>+                locate_template( array( 'status/post-form.php' ), true );
</ins><span class="cx">         } else {
</span><span class="cx">                 if ( 'clear' == $_GET['status'] &amp;&amp; is_user_logged_in() )
</span><span class="cx">                         bp_status_clear_status();
</span></span></pre></div>
<a id="trunkbpxprofilebpxprofiletemplatetagsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-xprofile/bp-xprofile-templatetags.php (1905 => 1906)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-xprofile/bp-xprofile-templatetags.php        2009-09-21 17:24:11 UTC (rev 1905)
+++ trunk/bp-xprofile/bp-xprofile-templatetags.php        2009-09-21 17:35:43 UTC (rev 1906)
</span><span class="lines">@@ -162,7 +162,7 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> function xprofile_get_profile() {
</span><del>-        load_template( TEMPLATEPATH . '/profile/profile-loop.php');
</del><ins>+        locate_template( array( 'profile/profile-loop.php'), true );
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> function bp_has_profile( $args = '' ) { 
</span></span></pre>
</div>
</div>

</body>
</html>