diff options
author | Max Kostikov <max@kostikov.co> | 2018-11-13 12:52:35 +0100 |
---|---|---|
committer | Max Kostikov <max@kostikov.co> | 2018-11-13 12:52:35 +0100 |
commit | cf2f7f2132e11dc37d1d62576a5ea7ed8ee9839d (patch) | |
tree | 503a334d6880d2cb5f24df646326dab4d3a53252 /Zotlabs/Module | |
parent | a1455596621fb19b614e71d6f5b3249067d2566b (diff) | |
download | volse-hubzilla-cf2f7f2132e11dc37d1d62576a5ea7ed8ee9839d.tar.gz volse-hubzilla-cf2f7f2132e11dc37d1d62576a5ea7ed8ee9839d.tar.bz2 volse-hubzilla-cf2f7f2132e11dc37d1d62576a5ea7ed8ee9839d.zip |
Update Photo.php
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r-- | Zotlabs/Module/Photo.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Zotlabs/Module/Photo.php b/Zotlabs/Module/Photo.php index 8d55eed2f..30e8340e2 100644 --- a/Zotlabs/Module/Photo.php +++ b/Zotlabs/Module/Photo.php @@ -198,20 +198,20 @@ class Photo extends \Zotlabs\Web\Controller { if(isset($resolution)) { switch($resolution) { case 4: - $default = z_root() . '/' . get_default_profile_photo(); + $default = get_default_profile_photo(); break; case 5: - $default = z_root() . '/' . get_default_profile_photo(80); + $default = get_default_profile_photo(80); break; case 6: - $default = z_root() . '/' . get_default_profile_photo(48); + $default = get_default_profile_photo(48); break; default: killme(); // NOTREACHED break; } - $x = z_fetch_url($default,true,0,[ 'novalidate' => true ]); + $x = z_fetch_url(z_root() . '/' . $default,true,0,[ 'novalidate' => true ]); $data = ($x['success'] ? $x['body'] : EMPTY_STR); $mimetype = 'image/png'; } |