<!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] [2717] trunk: Replace hard coded 'settings' in URI'
s with BP_SETTINGS_SLUG</title>
</head>
<body>
<div id="msg">
<dl>
<dt>Revision</dt> <dd>2717</dd>
<dt>Author</dt> <dd>johnjamesjacoby</dd>
<dt>Date</dt> <dd>2010-02-15 07:04:18 +0000 (Mon, 15 Feb 2010)</dd>
</dl>
<h3>Log Message</h3>
<pre>Replace hard coded 'settings' in URI's with BP_SETTINGS_SLUG</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkbpactivitybpactivitynotificationsphp">trunk/bp-activity/bp-activity-notifications.php</a></li>
<li><a href="#trunkbpcorebpcoresettingsphp">trunk/bp-core/bp-core-settings.php</a></li>
<li><a href="#trunkbpfriendsbpfriendsnotificationsphp">trunk/bp-friends/bp-friends-notifications.php</a></li>
<li><a href="#trunkbpgroupsbpgroupsnotificationsphp">trunk/bp-groups/bp-groups-notifications.php</a></li>
<li><a href="#trunkbpmessagesbpmessagesnotificationsphp">trunk/bp-messages/bp-messages-notifications.php</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkbpactivitybpactivitynotificationsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-activity/bp-activity-notifications.php (2716 => 2717)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-activity/bp-activity-notifications.php        2010-02-13 14:11:06 UTC (rev 2716)
+++ trunk/bp-activity/bp-activity-notifications.php        2010-02-15 07:04:18 UTC (rev 2717)
</span><span class="lines">@@ -20,7 +20,7 @@
</span><span class="cx">                         $poster_name = bp_core_get_user_displayname( $poster_user_id );
</span><span class="cx">
</span><span class="cx">                         $message_link = bp_activity_get_permalink( $activity_id );
</span><del>-                        $settings_link = bp_core_get_user_domain( $receiver_user_id ) . 'settings/notifications/';
</del><ins>+                        $settings_link = bp_core_get_user_domain( $receiver_user_id ) . BP_SETTINGS_SLUG . '/notifications/';
</ins><span class="cx">
</span><span class="cx">                         // Set up and send the message
</span><span class="cx">                         $ud = bp_core_get_core_userdata( $receiver_user_id );
</span><span class="lines">@@ -60,7 +60,7 @@
</span><span class="cx">         if ( $original_activity->user_id != $commenter_id && 'no' != get_usermeta( $original_activity->user_id, 'notification_activity_new_reply' ) ) {
</span><span class="cx">                 $poster_name = bp_core_get_user_displayname( $commenter_id );
</span><span class="cx">                 $thread_link = bp_activity_get_permalink( $activity_id );
</span><del>-                $settings_link = bp_core_get_user_domain( $original_activity->user_id ) . 'settings/notifications/';
</del><ins>+                $settings_link = bp_core_get_user_domain( $original_activity->user_id ) . BP_SETTINGS_SLUG . '/notifications/';
</ins><span class="cx">
</span><span class="cx">                 // Set up and send the message
</span><span class="cx">                 $ud = bp_core_get_core_userdata( $original_activity->user_id );
</span><span class="lines">@@ -99,7 +99,7 @@
</span><span class="cx">         if ( $parent_comment->user_id != $commenter_id && $original_activity->user_id != $parent_comment->user_id && 'no' != get_usermeta( $parent_comment->user_id, 'notification_activity_new_reply' ) ) {
</span><span class="cx">                 $poster_name = bp_core_get_user_displayname( $commenter_id );
</span><span class="cx">                 $thread_link = bp_activity_get_permalink( $activity_id );
</span><del>-                $settings_link = bp_core_get_user_domain( $parent_comment->user_id ) . 'settings/notifications/';
</del><ins>+                $settings_link = bp_core_get_user_domain( $parent_comment->user_id ) . BP_SETTINGS_SLUG . '/notifications/';
</ins><span class="cx">
</span><span class="cx">                 // Set up and send the message
</span><span class="cx">                 $ud = bp_core_get_core_userdata( $parent_comment->user_id );
</span></span></pre></div>
<a id="trunkbpcorebpcoresettingsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-core/bp-core-settings.php (2716 => 2717)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-core/bp-core-settings.php        2010-02-13 14:11:06 UTC (rev 2716)
+++ trunk/bp-core/bp-core-settings.php        2010-02-15 07:04:18 UTC (rev 2717)
</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' => __('Settings', 'buddypress'), 'slug' => $bp->settings->slug, 'position' => 100, 'show_for_displayed_user' => false, 'screen_function' => 'bp_core_screen_general_settings', 'default_subnav_slug' => 'general' ) );
</span><span class="cx">
</span><del>-        $settings_link = $bp->loggedin_user->domain . 'settings/';
</del><ins>+        $settings_link = $bp->loggedin_user->domain . $bp->settings->slug . '/';
</ins><span class="cx">
</span><span class="cx">         bp_core_new_subnav_item( array( 'name' => __( 'General', 'buddypress' ), 'slug' => 'general', 'parent_url' => $settings_link, 'parent_slug' => $bp->settings->slug, 'screen_function' => 'bp_core_screen_general_settings', 'position' => 10, 'user_has_access' => bp_is_my_profile() ) );
</span><span class="cx">         bp_core_new_subnav_item( array( 'name' => __( 'Notifications', 'buddypress' ), 'slug' => 'notifications', 'parent_url' => $settings_link, 'parent_slug' => $bp->settings->slug, 'screen_function' => 'bp_core_screen_notification_settings', 'position' => 20, 'user_has_access' => bp_is_my_profile() ) );
</span><span class="lines">@@ -85,7 +85,7 @@
</span><span class="cx">                 </div>
</span><span class="cx">         <?php } ?>
</span><span class="cx">
</span><del>-        <form action="<?php echo $bp->loggedin_user->domain . 'settings/general' ?>" method="post" class="standard-form" id="settings-form">
</del><ins>+        <form action="<?php echo $bp->loggedin_user->domain . BP_SETTINGS_SLUG . '/general' ?>" method="post" class="standard-form" id="settings-form">
</ins><span class="cx">                 <label for="email"><?php _e( 'Account Email', 'buddypress' ) ?></label>
</span><span class="cx">                 <input type="text" name="email" id="email" value="<?php echo attribute_escape( $current_user->user_email ); ?>" class="settings-input" />
</span><span class="cx">
</span><span class="lines">@@ -140,7 +140,7 @@
</span><span class="cx">                 </div>
</span><span class="cx">         <?php } ?>
</span><span class="cx">
</span><del>-        <form action="<?php echo $bp->loggedin_user->domain . 'settings/notifications' ?>" method="post" id="settings-form">
</del><ins>+        <form action="<?php echo $bp->loggedin_user->domain . BP_SETTINGS_SLUG . '/notifications' ?>" method="post" id="settings-form">
</ins><span class="cx">                 <h3><?php _e( 'Email Notifications', 'buddypress' ) ?></h3>
</span><span class="cx">                 <p><?php _e( 'Send a notification by email when:', 'buddypress' ) ?></p>
</span><span class="cx">
</span><span class="lines">@@ -180,7 +180,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;         ?>
</span><span class="cx">
</span><del>-        <form action="<?php echo $bp->loggedin_user->domain . 'settings/delete-account'; ?>" name="account-delete-form" id="account-delete-form" class="standard-form" method="post">
</del><ins>+        <form action="<?php echo $bp->loggedin_user->domain . BP_SETTINGS_SLUG . '/delete-account'; ?>" name="account-delete-form" id="account-delete-form" class="standard-form" method="post">
</ins><span class="cx">
</span><span class="cx">                 <div id="message" class="info">
</span><span class="cx">                         <p><?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' ); ?></p>
</span></span></pre></div>
<a id="trunkbpfriendsbpfriendsnotificationsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-friends/bp-friends-notifications.php (2716 => 2717)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-friends/bp-friends-notifications.php        2010-02-13 14:11:06 UTC (rev 2716)
+++ trunk/bp-friends/bp-friends-notifications.php        2010-02-15 07:04:18 UTC (rev 2717)
</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 ) . BP_FRIENDS_SLUG . '/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_SETTINGS_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">@@ -53,7 +53,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_SETTINGS_SLUG . '/notifications';
</ins><span class="cx">
</span><span class="cx">         // Set up and send the message
</span><span class="cx">         $to = $ud->user_email;
</span></span></pre></div>
<a id="trunkbpgroupsbpgroupsnotificationsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-groups/bp-groups-notifications.php (2716 => 2717)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-groups/bp-groups-notifications.php        2010-02-13 14:11:06 UTC (rev 2716)
+++ trunk/bp-groups/bp-groups-notifications.php        2010-02-15 07:04:18 UTC (rev 2717)
</span><span class="lines">@@ -16,7 +16,7 @@
</span><span class="cx">                 $to = $ud->user_email;
</span><span class="cx">
</span><span class="cx">                 $group_link = site_url( $bp->groups->slug . '/' . $group->slug );
</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_SETTINGS_SLUG . '/notifications/';
</ins><span class="cx">
</span><span class="cx">                 $message = sprintf( __(
</span><span class="cx"> 'Group details for the group "%s" were updated:
</span><span class="lines">@@ -55,7 +55,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_SETTINGS_SLUG . '/notifications/';
</ins><span class="cx">
</span><span class="cx">         // Set up and send the message
</span><span class="cx">         $to = $ud->user_email;
</span><span class="lines">@@ -101,7 +101,7 @@
</span><span class="cx">         $ud = bp_core_get_core_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_SETTINGS_SLUG . '/notifications/';
</ins><span class="cx">
</span><span class="cx">         // Set up and send the message
</span><span class="cx">         $to = $ud->user_email;
</span><span class="lines">@@ -158,7 +158,7 @@
</span><span class="cx">         $ud = bp_core_get_core_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_SETTINGS_SLUG . '/notifications/';
</ins><span class="cx">
</span><span class="cx">         // Set up and send the message
</span><span class="cx">         $to = $ud->user_email;
</span><span class="lines">@@ -204,7 +204,7 @@
</span><span class="cx">
</span><span class="cx">                 $invited_ud = bp_core_get_core_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_SETTINGS_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->groups->slug . '/invites';
</span><span class="cx">
</span><span class="lines">@@ -262,7 +262,7 @@
</span><span class="cx">                         $poster_name = bp_core_get_user_displayname( $poster_user_id );
</span><span class="cx">
</span><span class="cx">                         $message_link = bp_activity_get_permalink( $activity_id );
</span><del>-                        $settings_link = bp_core_get_user_domain( $receiver_user_id ) . 'settings/notifications/';
</del><ins>+                        $settings_link = bp_core_get_user_domain( $receiver_user_id ) . BP_SETTINGS_SLUG . '/notifications/';
</ins><span class="cx">
</span><span class="cx">                         // Set up and send the message
</span><span class="cx">                         $ud = bp_core_get_core_userdata( $receiver_user_id );
</span></span></pre></div>
<a id="trunkbpmessagesbpmessagesnotificationsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-messages/bp-messages-notifications.php (2716 => 2717)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-messages/bp-messages-notifications.php        2010-02-13 14:11:06 UTC (rev 2716)
+++ trunk/bp-messages/bp-messages-notifications.php        2010-02-15 07:04:18 UTC (rev 2717)
</span><span class="lines">@@ -11,7 +11,7 @@
</span><span class="cx">
</span><span class="cx">                 $ud = get_userdata( $recipient->user_id );
</span><span class="cx">                 $message_link = bp_core_get_user_domain( $recipient->user_id ) . BP_MESSAGES_SLUG .'/';
</span><del>-                $settings_link = bp_core_get_user_domain( $recipient->user_id ) . 'settings/notifications/';
</del><ins>+                $settings_link = bp_core_get_user_domain( $recipient->user_id ) . BP_SETTINGS_SLUG . '/notifications/';
</ins><span class="cx">
</span><span class="cx">                 // Set up and send the message
</span><span class="cx">                 $email_to = $ud->user_email;
</span></span></pre>
</div>
</div>
</body>
</html>