more work related to attach/photo and os_path, display_path and general code cleanup

This commit is contained in:
zotlabs
2017-03-15 01:20:21 -07:00
committed by Mario Vavti
parent fa5115b3ed
commit d7aaca6947
2 changed files with 40 additions and 36 deletions

View File

@@ -108,11 +108,13 @@ class Profile_photo extends \Zotlabs\Web\Controller {
$aid = get_account_id();
$p = [
'aid' => $aid,
'uid' => local_channel(),
'resource_id' => $base_image['resource_id'],
'filename' => $base_image['filename'],
'album' => t('Profile Photos')
'aid' => $aid,
'uid' => local_channel(),
'resource_id' => $base_image['resource_id'],
'filename' => $base_image['filename'],
'album' => t('Profile Photos'),
'os_path' => $base_image['os_path'],
'display_path' => $base_image['display_path']
];
$p['imgscale'] = PHOTO_RES_PROFILE_300;