aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Profile_photo.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-03-15 01:20:21 -0700
committerMario Vavti <mario@mariovavti.com>2017-03-29 13:44:55 +0200
commitd7aaca69475fed4c161b46821946227b4b826deb (patch)
tree6822c56e0818f58f1711ae1fe68eace28a26619c /Zotlabs/Module/Profile_photo.php
parentfa5115b3ed017f6aa22c99cad563de3934b171c2 (diff)
downloadvolse-hubzilla-d7aaca69475fed4c161b46821946227b4b826deb.tar.gz
volse-hubzilla-d7aaca69475fed4c161b46821946227b4b826deb.tar.bz2
volse-hubzilla-d7aaca69475fed4c161b46821946227b4b826deb.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;