<!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] [2123] branches/1.1: Fixes #1249</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd>2123</dd>
<dt>Author</dt> <dd>johnjamesjacoby</dd>
<dt>Date</dt> <dd>2009-11-25 11:56:18 +0000 (Wed, 25 Nov 2009)</dd>
</dl>

<h3>Log Message</h3>
<pre>Fixes #1249</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#branches11bpcorebpcoresettingsphp">branches/1.1/bp-core/bp-core-settings.php</a></li>
<li><a href="#branches11bpfriendsbpfriendsnotificationsphp">branches/1.1/bp-friends/bp-friends-notifications.php</a></li>
<li><a href="#branches11bpgroupsbpgroupsnotificationsphp">branches/1.1/bp-groups/bp-groups-notifications.php</a></li>
<li><a href="#branches11bpmessagesbpmessagesnotificationsphp">branches/1.1/bp-messages/bp-messages-notifications.php</a></li>
<li><a href="#branches11bpxprofilebpxprofilenotificationsphp">branches/1.1/bp-xprofile/bp-xprofile-notifications.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="branches11bpcorebpcoresettingsphp"></a>
<div class="modfile"><h4>Modified: branches/1.1/bp-core/bp-core-settings.php (2122 => 2123)</h4>
<pre class="diff"><span>
<span class="info">--- branches/1.1/bp-core/bp-core-settings.php        2009-11-25 11:43:02 UTC (rev 2122)
+++ branches/1.1/bp-core/bp-core-settings.php        2009-11-25 11:56:18 UTC (rev 2123)
</span><span class="lines">@@ -16,7 +16,7 @@
</span><span class="cx">         /* Add the settings navigation item */
</span><span class="cx">         bp_core_new_nav_item( array( 'name' =&gt; __('Settings', 'buddypress'), 'slug' =&gt; $bp-&gt;settings-&gt;slug, 'position' =&gt; 100, 'show_for_displayed_user' =&gt; false, 'screen_function' =&gt; 'bp_core_screen_general_settings', 'default_subnav_slug' =&gt; 'general' ) );
</span><span class="cx"> 
</span><del>-        $settings_link = $bp-&gt;loggedin_user-&gt;domain . 'settings/';
</del><ins>+        $settings_link = $bp-&gt;loggedin_user-&gt;domain . BP_SETTINGS_SLUG . '/';
</ins><span class="cx"> 
</span><span class="cx">         bp_core_new_subnav_item( array( 'name' =&gt; __( 'General', 'buddypress' ), 'slug' =&gt; 'general', 'parent_url' =&gt; $settings_link, 'parent_slug' =&gt; $bp-&gt;settings-&gt;slug, 'screen_function' =&gt; 'bp_core_screen_general_settings', 'position' =&gt; 10, 'user_has_access' =&gt; bp_is_home() ) );
</span><span class="cx">         bp_core_new_subnav_item( array( 'name' =&gt; __( 'Notifications', 'buddypress' ), 'slug' =&gt; 'notifications', 'parent_url' =&gt; $settings_link, 'parent_slug' =&gt; $bp-&gt;settings-&gt;slug, 'screen_function' =&gt; 'bp_core_screen_notification_settings', 'position' =&gt; 20, 'user_has_access' =&gt; bp_is_home() ) );
</span><span class="lines">@@ -85,7 +85,7 @@
</span><span class="cx">                 &lt;/div&gt;
</span><span class="cx">         &lt;?php } ?&gt;
</span><span class="cx"> 
</span><del>-        &lt;form action=&quot;&lt;?php echo $bp-&gt;loggedin_user-&gt;domain . 'settings/general' ?&gt;&quot; method=&quot;post&quot; class=&quot;standard-form&quot; id=&quot;settings-form&quot;&gt;
</del><ins>+        &lt;form action=&quot;&lt;?php echo $bp-&gt;loggedin_user-&gt;domain . $bp-&gt;settings-&gt;slug . '/general' ?&gt;&quot; method=&quot;post&quot; class=&quot;standard-form&quot; id=&quot;settings-form&quot;&gt;
</ins><span class="cx">                 &lt;label for=&quot;email&quot;&gt;&lt;?php _e( 'Account Email', 'buddypress' ) ?&gt;&lt;/label&gt;
</span><span class="cx">                 &lt;input type=&quot;text&quot; name=&quot;email&quot; id=&quot;email&quot; value=&quot;&lt;?php echo attribute_escape( $current_user-&gt;user_email ); ?&gt;&quot; class=&quot;settings-input&quot; /&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -137,7 +137,7 @@
</span><span class="cx">                 &lt;/div&gt;
</span><span class="cx">         &lt;?php } ?&gt;
</span><span class="cx"> 
</span><del>-        &lt;form action=&quot;&lt;?php echo $bp-&gt;loggedin_user-&gt;domain . 'settings/notifications' ?&gt;&quot; method=&quot;post&quot; id=&quot;settings-form&quot;&gt;
</del><ins>+        &lt;form action=&quot;&lt;?php echo $bp-&gt;loggedin_user-&gt;domain . $bp-&gt;settings-&gt;slug . '/notifications' ?&gt;&quot; method=&quot;post&quot; id=&quot;settings-form&quot;&gt;
</ins><span class="cx">                 &lt;h3&gt;&lt;?php _e( 'Email Notifications', 'buddypress' ) ?&gt;&lt;/h3&gt;
</span><span class="cx">                 &lt;p&gt;&lt;?php _e( 'Send a notification by email when:', 'buddypress' ) ?&gt;&lt;/p&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -175,7 +175,7 @@
</span><span class="cx"> function bp_core_screen_delete_account_content() {
</span><span class="cx">         global $bp, $current_user, $bp_settings_updated, $pass_error;         ?&gt;
</span><span class="cx"> 
</span><del>-        &lt;form action=&quot;&lt;?php echo $bp-&gt;loggedin_user-&gt;domain . 'settings/delete-account'; ?&gt;&quot; name=&quot;account-delete-form&quot; id=&quot;account-delete-form&quot; class=&quot;standard-form&quot; method=&quot;post&quot;&gt;
</del><ins>+        &lt;form action=&quot;&lt;?php echo $bp-&gt;loggedin_user-&gt;domain . $bp-&gt;settings-&gt;slug . '/delete-account'; ?&gt;&quot; name=&quot;account-delete-form&quot; id=&quot;account-delete-form&quot; class=&quot;standard-form&quot; method=&quot;post&quot;&gt;
</ins><span class="cx"> 
</span><span class="cx">                 &lt;div id=&quot;message&quot; class=&quot;info&quot;&gt;
</span><span class="cx">                         &lt;p&gt;&lt;?php _e( 'WARNING: Deleting your account will completely remove ALL content associated with it. There is no way back, please be careful with this option.', 'buddypress' ); ?&gt;&lt;/p&gt;
</span></span></pre></div>
<a id="branches11bpfriendsbpfriendsnotificationsphp"></a>
<div class="modfile"><h4>Modified: branches/1.1/bp-friends/bp-friends-notifications.php (2122 => 2123)</h4>
<pre class="diff"><span>
<span class="info">--- branches/1.1/bp-friends/bp-friends-notifications.php        2009-11-25 11:43:02 UTC (rev 2122)
+++ branches/1.1/bp-friends/bp-friends-notifications.php        2009-11-25 11:56:18 UTC (rev 2123)
</span><span class="lines">@@ -12,7 +12,7 @@
</span><span class="cx">         $initiator_ud = get_userdata( $initiator_id );
</span><span class="cx"> 
</span><span class="cx">         $all_requests_link = bp_core_get_user_domain( $friend_id ) . 'friends/requests/';
</span><del>-        $settings_link = bp_core_get_user_domain( $friend_id ) . 'settings/notifications';
</del><ins>+        $settings_link = bp_core_get_user_domain( $friend_id ) . $bp-&gt;settings-&gt;slug . '/notifications';
</ins><span class="cx"> 
</span><span class="cx">         $initiator_link = bp_core_get_user_domain( $initiator_id );
</span><span class="cx"> 
</span><span class="lines">@@ -50,7 +50,7 @@
</span><span class="cx">         $ud = get_userdata( $initiator_id );
</span><span class="cx"> 
</span><span class="cx">         $friend_link = bp_core_get_user_domain( $friend_id );
</span><del>-        $settings_link = bp_core_get_user_domain( $initiator_id ) . 'settings/notifications';
</del><ins>+        $settings_link = bp_core_get_user_domain( $initiator_id ) . $bp-&gt;settings-&gt;slug . '/notifications';
</ins><span class="cx"> 
</span><span class="cx">         // Set up and send the message
</span><span class="cx">         $to = $ud-&gt;user_email;
</span></span></pre></div>
<a id="branches11bpgroupsbpgroupsnotificationsphp"></a>
<div class="modfile"><h4>Modified: branches/1.1/bp-groups/bp-groups-notifications.php (2122 => 2123)</h4>
<pre class="diff"><span>
<span class="info">--- branches/1.1/bp-groups/bp-groups-notifications.php        2009-11-25 11:43:02 UTC (rev 2122)
+++ branches/1.1/bp-groups/bp-groups-notifications.php        2009-11-25 11:56:18 UTC (rev 2123)
</span><span class="lines">@@ -24,7 +24,7 @@
</span><span class="cx"> 
</span><span class="cx">                 $wire_link = site_url( $bp-&gt;groups-&gt;slug . '/' . $group-&gt;slug . '/wire/' );
</span><span class="cx">                 $group_link = site_url( $bp-&gt;groups-&gt;slug . '/' . $group-&gt;slug . '/' );
</span><del>-                $settings_link = bp_core_get_user_domain( $user-&gt;user_id ) . 'settings/notifications/';
</del><ins>+                $settings_link = bp_core_get_user_domain( $user-&gt;user_id ) . $bp-&gt;settings-&gt;slug . '/notifications/';
</ins><span class="cx"> 
</span><span class="cx">                 $message = sprintf( __(
</span><span class="cx"> '%s posted on the wire of the group &quot;%s&quot;:
</span><span class="lines">@@ -64,7 +64,7 @@
</span><span class="cx">                 $to = $ud-&gt;user_email;
</span><span class="cx"> 
</span><span class="cx">                 $group_link = site_url( $bp-&gt;groups-&gt;slug . '/' . $group-&gt;slug );
</span><del>-                $settings_link = bp_core_get_user_domain( $user-&gt;user_id ) . 'settings/notifications/';
</del><ins>+                $settings_link = bp_core_get_user_domain( $user-&gt;user_id ) . $bp-&gt;settings-&gt;slug . '/notifications/';
</ins><span class="cx"> 
</span><span class="cx">                 $message = sprintf( __(
</span><span class="cx"> 'Group details for the group &quot;%s&quot; were updated:
</span><span class="lines">@@ -99,7 +99,7 @@
</span><span class="cx"> 
</span><span class="cx">         $group_requests = bp_get_group_permalink( $group ) . '/admin/membership-requests';
</span><span class="cx">         $profile_link = bp_core_get_user_domain( $requesting_user_id );
</span><del>-        $settings_link = bp_core_get_user_domain( $requesting_user_id ) . 'settings/notifications/';
</del><ins>+        $settings_link = bp_core_get_user_domain( $requesting_user_id ) . $bp-&gt;settings-&gt;slug . '/notifications/';
</ins><span class="cx"> 
</span><span class="cx">         // Set up and send the message
</span><span class="cx">         $to = $ud-&gt;user_email;
</span><span class="lines">@@ -141,7 +141,7 @@
</span><span class="cx">         $ud = get_userdata($requesting_user_id);
</span><span class="cx"> 
</span><span class="cx">         $group_link = bp_get_group_permalink( $group );
</span><del>-        $settings_link = bp_core_get_user_domain( $requesting_user_id ) . 'settings/notifications/';
</del><ins>+        $settings_link = bp_core_get_user_domain( $requesting_user_id ) . $bp-&gt;settings-&gt;slug . '/notifications/';
</ins><span class="cx"> 
</span><span class="cx">         // Set up and send the message
</span><span class="cx">         $to = $ud-&gt;user_email;
</span><span class="lines">@@ -194,7 +194,7 @@
</span><span class="cx">         $ud = get_userdata($user_id);
</span><span class="cx"> 
</span><span class="cx">         $group_link = bp_get_group_permalink( $group );
</span><del>-        $settings_link = bp_core_get_user_domain( $user_id ) . 'settings/notifications/';
</del><ins>+        $settings_link = bp_core_get_user_domain( $user_id ) . $bp-&gt;settings-&gt;slug . '/notifications/';
</ins><span class="cx"> 
</span><span class="cx">         // Set up and send the message
</span><span class="cx">         $to = $ud-&gt;user_email;
</span><span class="lines">@@ -236,7 +236,7 @@
</span><span class="cx"> 
</span><span class="cx">                 $invited_ud = get_userdata($invited_user_id);
</span><span class="cx"> 
</span><del>-                $settings_link = bp_core_get_user_domain( $invited_user_id ) . 'settings/notifications/';
</del><ins>+                $settings_link = bp_core_get_user_domain( $invited_user_id ) . $bp-&gt;settings-&gt;slug . '/notifications/';
</ins><span class="cx">                 $invited_link = bp_core_get_user_domain( $invited_user_id );
</span><span class="cx">                 $invites_link = $invited_link . $bp-&gt;groups-&gt;slug . '/invites';
</span><span class="cx"> 
</span></span></pre></div>
<a id="branches11bpmessagesbpmessagesnotificationsphp"></a>
<div class="modfile"><h4>Modified: branches/1.1/bp-messages/bp-messages-notifications.php (2122 => 2123)</h4>
<pre class="diff"><span>
<span class="info">--- branches/1.1/bp-messages/bp-messages-notifications.php        2009-11-25 11:43:02 UTC (rev 2122)
+++ branches/1.1/bp-messages/bp-messages-notifications.php        2009-11-25 11:56:18 UTC (rev 2123)
</span><span class="lines">@@ -12,8 +12,8 @@
</span><span class="cx">                 if ( $message-&gt;sender_id == $recipient_ids[$i] || 'no' == get_usermeta( $recipient_ids[$i], 'notification_messages_new_message' ) ) continue;
</span><span class="cx"> 
</span><span class="cx">                 $ud = get_userdata( $recipient_ids[$i] );
</span><del>-                $message_link = bp_core_get_user_domain( $recipient_ids[$i] ) . 'messages/view/' . $message-&gt;id;
-                $settings_link = bp_core_get_user_domain( $recipient_ids[$i] ) . 'settings/notifications';
</del><ins>+                $message_link = bp_core_get_user_domain( $recipient_ids[$i] ) . $bp-&gt;messages-&gt;slug . '/view/' . $message-&gt;id;
+                $settings_link = bp_core_get_user_domain( $recipient_ids[$i] ) . $bp-&gt;settings-&gt;slug . '/notifications';
</ins><span class="cx"> 
</span><span class="cx">                 // Set up and send the message
</span><span class="cx">                 $to = $ud-&gt;user_email;
</span><span class="lines">@@ -48,8 +48,8 @@
</span><span class="cx">         for ( $i = 0; $i &lt; count($users); $i++ ) {
</span><span class="cx">                 if ( get_usermeta( $users[$i]-&gt;user_id, 'notification_messages_new_notice' ) == 'no' ) continue;
</span><span class="cx"> 
</span><del>-                $message_link = bp_core_get_user_domain( $users[$i]-&gt;user_id ) . 'messages';
-                $settings_link = bp_core_get_user_domain( $users[$i]-&gt;user_id ) . 'settings/notifications';
</del><ins>+                $message_link = bp_core_get_user_domain( $users[$i]-&gt;user_id ) . $bp-&gt;messages-&gt;slug;
+                $settings_link = bp_core_get_user_domain( $users[$i]-&gt;user_id ) . $bp-&gt;settings-&gt;slug . '/notifications';
</ins><span class="cx"> 
</span><span class="cx">                 // Set up and send the message
</span><span class="cx">                 $to = $users[$i]-&gt;user_email;
</span></span></pre></div>
<a id="branches11bpxprofilebpxprofilenotificationsphp"></a>
<div class="modfile"><h4>Modified: branches/1.1/bp-xprofile/bp-xprofile-notifications.php (2122 => 2123)</h4>
<pre class="diff"><span>
<span class="info">--- branches/1.1/bp-xprofile/bp-xprofile-notifications.php        2009-11-25 11:43:02 UTC (rev 2122)
+++ branches/1.1/bp-xprofile/bp-xprofile-notifications.php        2009-11-25 11:56:18 UTC (rev 2123)
</span><span class="lines">@@ -30,7 +30,7 @@
</span><span class="cx">                         $ud = get_userdata( $user_id );
</span><span class="cx"> 
</span><span class="cx">                         $wire_link = bp_core_get_user_domain( $user_id ) . 'wire';
</span><del>-                        $settings_link = bp_core_get_user_domain( $user_id ) . 'settings/notifications';
</del><ins>+                        $settings_link = bp_core_get_user_domain( $user_id ) . $bp-&gt;settings-&gt;slug . '/notifications';
</ins><span class="cx"> 
</span><span class="cx">                         // Set up and send the message
</span><span class="cx">                         $to = $ud-&gt;user_email;
</span></span></pre>
</div>
</div>

</body>
</html>