aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2018-11-13 12:52:35 +0100
committerMax Kostikov <max@kostikov.co>2018-11-13 12:52:35 +0100
commitcf2f7f2132e11dc37d1d62576a5ea7ed8ee9839d (patch)
tree503a334d6880d2cb5f24df646326dab4d3a53252
parenta1455596621fb19b614e71d6f5b3249067d2566b (diff)
downloadvolse-hubzilla-cf2f7f2132e11dc37d1d62576a5ea7ed8ee9839d.tar.gz
volse-hubzilla-cf2f7f2132e11dc37d1d62576a5ea7ed8ee9839d.tar.bz2
volse-hubzilla-cf2f7f2132e11dc37d1d62576a5ea7ed8ee9839d.zip
Update Photo.php
-rw-r--r--Zotlabs/Module/Photo.php8
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';
}