From: Philipp Holzer Date: Fri, 19 Oct 2018 22:01:48 +0000 (+0200) Subject: replaced a relative url with path X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=95f3c3eca0f59bc212915a5b8843c7b30dd19ac8;p=friendica.git replaced a relative url with path --- diff --git a/mod/profile_photo.php b/mod/profile_photo.php index beed99d117..ee4f35f200 100644 --- a/mod/profile_photo.php +++ b/mod/profile_photo.php @@ -74,7 +74,7 @@ function profile_photo_post(App $a) $r = q("SELECT * FROM `photo` WHERE `resource-id` = '%s' AND `uid` = %d AND `scale` = %d LIMIT 1", DBA::escape($image_id), DBA::escape(local_user()), intval($scale)); - $url = 'profile/' . $a->user['nickname']; + $path = 'profile/' . $a->user['nickname']; if (DBA::isResult($r)) { $base_image = $r[0]; @@ -125,8 +125,8 @@ function profile_photo_post(App $a) info(L10n::t('Shift-reload the page or clear browser cache if the new photo does not display immediately.') . EOL); // Update global directory in background - if ($url && strlen(Config::get('system', 'directory'))) { - Worker::add(PRIORITY_LOW, "Directory", $url); + if ($path && strlen(Config::get('system', 'directory'))) { + Worker::add(PRIORITY_LOW, "Directory", $path); } Worker::add(PRIORITY_LOW, 'ProfileUpdate', local_user()); @@ -135,7 +135,7 @@ function profile_photo_post(App $a) } } - $a->internalRedirect($url); + $a->internalRedirect($path); return; // NOTREACHED }