system/modules/Users/objects/SocialHelper/Facebook.php 1 location
|
@@ 109-111 (lines=3) @@
|
| 106 |
|
} else { |
| 107 |
|
$user = \Users\User::$cur; |
| 108 |
|
} |
| 109 |
|
if (!$user->info->photo_file_id && !empty($userDetail['picture']['data']['url'])) { |
| 110 |
|
$user->info->photo_file_id = \App::$cur->files->uploadFromUrl($userDetail['picture']['data']['url']); |
| 111 |
|
} |
| 112 |
|
if (!$user->info->first_name && !empty($userDetail['first_name'])) { |
| 113 |
|
$user->info->first_name = $userDetail['first_name']; |
| 114 |
|
} |
system/modules/Users/objects/SocialHelper/Vk.php 1 location
|
@@ 111-113 (lines=3) @@
|
| 108 |
|
} else { |
| 109 |
|
$user = \Users\User::$cur; |
| 110 |
|
} |
| 111 |
|
if (!$user->info->photo_file_id && !empty($userDetail['response'][0]['photo_max_orig'])) { |
| 112 |
|
$user->info->photo_file_id = \App::$cur->files->uploadFromUrl($userDetail['response'][0]['photo_max_orig']); |
| 113 |
|
} |
| 114 |
|
if (!$user->info->first_name && !empty($userDetail['response'][0]['first_name'])) { |
| 115 |
|
$user->info->first_name = $userDetail['response'][0]['first_name']; |
| 116 |
|
} |