skala
Julio Montoya 15 years ago
commit 408d1348f4
  1. 9
      main/inc/lib/social.lib.php
  2. 2
      main/social/invitations.php

@ -659,10 +659,7 @@ class SocialManager extends UserManager {
$user_id = api_get_user_id();
}
$img_array = UserManager::get_user_picture_path_by_id($user_id,'web',true,true);
$big_image = UserManager::get_picture_user($user_id, $img_array['file'],'', USER_IMAGE_SIZE_BIG);
$big_image = $big_image['file'].$big_image['dir'];
$show_groups = array('groups', 'group_messages', 'messages_list', 'group_add', 'mygroups', 'group_edit', 'member_list', 'invite_friends', 'waiting_list');
$show_messages = array('messages', 'messages_inbox', 'messages_outbox', 'messages_compose');
@ -700,6 +697,10 @@ class SocialManager extends UserManager {
echo '</center></div>';
echo '</div>';
} else {
$img_array = UserManager::get_user_picture_path_by_id($user_id,'web',true,true);
$big_image = UserManager::get_picture_user($user_id, $img_array['file'],'', USER_IMAGE_SIZE_BIG);
$big_image = $big_image['file'].$big_image['dir'];
//--- User image
echo '<div class="social-content-image">';
echo '<div class="social-background-content" onmouseout="hide_icon_edit()" onmouseover="show_icon_edit()"><center>';

@ -128,7 +128,7 @@ echo '<div id="social-content">';
$pending_invitations = GroupPortalManager::get_groups_by_user($user_id, GROUP_USER_PERMISSION_PENDING_INVITATION);
$number_loop = count($list_get_invitation);
$total_invitations = $number_loop + count($list_get_invitation_sent);
$total_invitations = $number_loop + count($list_get_invitation_sent) + count($pending_invitations);
if ($total_invitations == 0 && count($_GET) <= 0) {
echo '<a href="search.php">'.get_lang('TryAndFindSomeFriends').'</a>';

Loading…
Cancel
Save