diff --git a/main/social/home.php b/main/social/home.php index 9919f4cb99..691514c1f4 100755 --- a/main/social/home.php +++ b/main/social/home.php @@ -18,7 +18,7 @@ $show_full_profile = true; //social tab $this_section = SECTION_SOCIAL; -$interbreadcrumb[]= array ('url' => api_get_path(WEB_PATH).'main/social/profile.php','name' => get_lang('Social')); +$interbreadcrumb[]= array ('url' => 'home.php','name' => get_lang('Social')); $interbreadcrumb[]= array ('url' => '#','name' => get_lang('Home')); api_block_anonymous_users(); diff --git a/main/social/profile.php b/main/social/profile.php index d7d30ee212..1f9cd80c01 100755 --- a/main/social/profile.php +++ b/main/social/profile.php @@ -187,10 +187,10 @@ if (isset($_GET['shared'])) { $my_link='../social/profile.php'; $link_shared=''; } -$interbreadcrumb[]= array ('url' =>'profile.php','name' => get_lang('Social') ); -$interbreadcrumb[]= array ('url' => '#', 'name' => get_lang('ViewMySharedProfile')); +$interbreadcrumb[]= array ('url' =>'home.php','name' => get_lang('Social') ); +$interbreadcrumb[]= array ('url' => 'profile.php?u='.api_get_user_id(), 'name' => get_lang('ViewMySharedProfile')); -if (isset($_GET['u']) && is_numeric($_GET['u'])) { +if (isset($_GET['u']) && is_numeric($_GET['u']) && $_GET['u'] != api_get_user_id()) { $info_user=api_get_user_info($_GET['u']); $interbreadcrumb[]= array ('url' => '#','name' => api_get_person_name($info_user['firstName'], $info_user['lastName'])); } @@ -207,8 +207,6 @@ $_SESSION['social_user_id'] = intval($user_id); */ Display :: display_header(null); - - // @todo here we must show the user information as read only //User picture size is calculated from SYSTEM path