diff --git a/main/inc/lib/social.lib.php b/main/inc/lib/social.lib.php index 7021576d4d..fc1ec39d17 100755 --- a/main/inc/lib/social.lib.php +++ b/main/inc/lib/social.lib.php @@ -631,10 +631,10 @@ class SocialManager extends UserManager $html .= '
'; $html .= '
'; - $html .= Display::url('

', api_get_path(WEB_PATH).'main/social/groups.php?id='.$group_id); + $html .= Display::url('

', api_get_path(WEB_CODE_PATH).'social/groups.php?id='.$group_id); if (GroupPortalManager::is_group_admin($group_id, api_get_user_id())) { $html .= ''; } $html .= '
'; @@ -659,7 +659,7 @@ class SocialManager extends UserManager } if (api_get_user_id() == $user_id) { $html .= ''; + $html .= ''.get_lang('EditProfile').'
'; } $html .= ''; } @@ -740,29 +740,29 @@ class SocialManager extends UserManager $html .= ''; } @@ -781,18 +781,18 @@ class SocialManager extends UserManager // My own profile if ($show_full_profile && $user_id == intval(api_get_user_id())) { - $html .= '
  • '.get_lang('Home').'
  • -
  • '.get_lang('Messages').$count_unread_message.'
  • '; + $html .= '
  • '.get_lang('Home').'
  • +
  • '.get_lang('Messages').$count_unread_message.'
  • '; $active = $show == 'invitations' ? 'active' : null; - $html .= '
  • '.get_lang('Invitations').$total_invitations.'
  • '; + $html .= '
  • '.get_lang('Invitations').$total_invitations.'
  • '; - $html .= '
  • '.get_lang('ViewMySharedProfile').'
  • -
  • '.get_lang('Friends').'
  • -
  • '.get_lang('SocialGroups').'
  • '; + $html .= '
  • '.get_lang('ViewMySharedProfile').'
  • +
  • '.get_lang('Friends').'
  • +
  • '.get_lang('SocialGroups').'
  • '; $active = $show == 'search' ? 'active' : null; - $html .= '
  • '.get_lang('Search').'
  • '; + $html .= '
  • '.get_lang('Search').'
  • '; $active = $show == 'myfiles' ? 'active' : null; - $html .= '
  • '.get_lang('MyFiles').'
  • '; + $html .= '
  • '.get_lang('MyFiles').'
  • '; } // My friend profile. @@ -805,7 +805,7 @@ class SocialManager extends UserManager $invitation_sent_list = SocialManager::get_list_invitation_sent_by_user_id(api_get_user_id()); if (isset($invitation_sent_list[$user_id]) && is_array($invitation_sent_list[$user_id]) && count($invitation_sent_list[$user_id]) > 0) { - $html .= '
  • '.Display::return_icon('invitation.png', get_lang('YouAlreadySentAnInvitation')).'  '.get_lang('YouAlreadySentAnInvitation').'
  • '; + $html .= '
  • '.Display::return_icon('invitation.png', get_lang('YouAlreadySentAnInvitation')).'  '.get_lang('YouAlreadySentAnInvitation').'
  • '; } else { if (!$show_full_profile) { $html .= '
  • '.Display :: return_icon('invitation.png', get_lang('SocialInvitationToFriends')).' '.get_lang('SendInvitation').'
  • '; @@ -946,7 +946,7 @@ class SocialManager extends UserManager // Anonymous users can't have access to the profile if (!api_is_anonymous()) { if (api_get_setting('allow_social_tool') == 'true') { - $url = api_get_path(WEB_PATH).'main/social/profile.php?u='.$uid.$course_url; + $url = api_get_path(WEB_CODE_PATH).'social/profile.php?u='.$uid.$course_url; } else { $url = '?id='.$uid.$course_url; } @@ -1315,7 +1315,7 @@ class SocialManager extends UserManager $nameComplete = api_is_western_name_order() ? $users[$userIdLoop]['firstname'] .' ' . $users[$userIdLoop]['lastname'] : $users[$userIdLoop]['lastname'] . ' ' . $users[$userIdLoop]['firstname']; - $url = api_get_path(WEB_PATH).'main/social/profile.php?u='.$userIdLoop; + $url = api_get_path(WEB_CODE_PATH).'social/profile.php?u='.$userIdLoop; $media = ''; $media .= '
    '; $media .= '
    '; @@ -1339,7 +1339,7 @@ class SocialManager extends UserManager $media .= '
    '; if ($isOwnWall) { $media .= '
    '; - $media .= '
    '.get_lang('SocialMessageDelete').'
    '; $media .= '
    '; } @@ -1418,13 +1418,13 @@ class SocialManager extends UserManager { $date = api_get_local_time($message['send_date']); $avatarAuthor = $users[$authorId]['avatar']; - $urlAuthor = api_get_path(WEB_PATH).'main/social/profile.php?u='.$authorId; + $urlAuthor = api_get_path(WEB_CODE_PATH).'social/profile.php?u='.$authorId; $nameCompleteAuthor = api_is_western_name_order() ? $users[$authorId]['firstname'] .' ' . $users[$authorId]['lastname'] : $users[$authorId]['lastname'] . ' ' . $users[$authorId]['firstname']; $avatarReciver = $users[$reciverId]['avatar']; - $urlReciber = api_get_path(WEB_PATH).'main/social/profile.php?u='.$reciverId; + $urlReciber = api_get_path(WEB_CODE_PATH).'social/profile.php?u='.$reciverId; $nameCompleteReciver = api_is_western_name_order() ? $users[$reciverId]['firstname'] .' ' . $users[$reciverId]['lastname'] : $users[$reciverId]['lastname'] . ' ' . $users[$reciverId]['firstname']; @@ -1446,7 +1446,7 @@ class SocialManager extends UserManager $htmlDelete = ''; if ($isOwnWall) { - $htmlDelete .= ''.get_lang('SocialMessageDelete').''; }