]> git.mxchange.org Git - friendica.git/commitdiff
replaced a relative url with path
authorPhilipp Holzer <admin@philipp.info>
Fri, 19 Oct 2018 22:01:48 +0000 (00:01 +0200)
committerPhilipp Holzer <admin@philipp.info>
Mon, 22 Oct 2018 20:13:38 +0000 (22:13 +0200)
mod/profile_photo.php

index beed99d117887cd198d3eec7df44e2809cdac9c8..ee4f35f200af6c6286db9e74e2772993ddba9414 100644 (file)
@@ -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
        }