Browse Source

Fixing user image

Julio Montoya 12 years ago
parent
commit
5979ba6be9
1 changed files with 2 additions and 1 deletions
  1. 2 1
      main/inc/lib/userportal.lib.php

+ 2 - 1
main/inc/lib/userportal.lib.php

@@ -709,7 +709,8 @@ class IndexManager {
 		return $html;
 	}
     
-    function return_user_image_block() {        
+    function return_user_image_block() {		
+		$img_array = UserManager::get_user_picture_path_by_id(api_get_user_id(), 'web', true, true);		
 		$img_array = UserManager::get_picture_user(api_get_user_id(), $img_array['file'], 50, USER_IMAGE_SIZE_MEDIUM, ' width="90" height="90" ');		
         if (api_get_setting('allow_social_tool') == 'true') {
             $profile_content .='<a style="text-align:center" href="'.api_get_path(WEB_PATH).'main/social/home.php"><img src="'.$img_array['file'].'"  '.$img_array['style'].' ></a>';