aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Profile_photo.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-03-15 01:20:21 -0700
committerzotlabs <mike@macgirvin.com>2017-03-15 01:20:21 -0700
commit6078d02c3ac8ead59dbbecab2eb5de88ad7a1efc (patch)
treead2a7c439953553cc3d93c960ec608a6bc57f9f2 /Zotlabs/Module/Profile_photo.php
parentfa89b8f66d98f8d74ce9283314649d4916652df9 (diff)
downloadvolse-hubzilla-6078d02c3ac8ead59dbbecab2eb5de88ad7a1efc.tar.gz
volse-hubzilla-6078d02c3ac8ead59dbbecab2eb5de88ad7a1efc.tar.bz2
volse-hubzilla-6078d02c3ac8ead59dbbecab2eb5de88ad7a1efc.zip
more work related to attach/photo and os_path, display_path and general code cleanup
Diffstat (limited to 'Zotlabs/Module/Profile_photo.php')
-rw-r--r--Zotlabs/Module/Profile_photo.php12
1 files changed, 7 insertions, 5 deletions
diff --git a/Zotlabs/Module/Profile_photo.php b/Zotlabs/Module/Profile_photo.php
index 438580917..e8f0e5186 100644
--- a/Zotlabs/Module/Profile_photo.php
+++ b/Zotlabs/Module/Profile_photo.php
@@ -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;