]> git.mxchange.org Git - friendica.git/blobdiff - mod/unfollow.php
replaced $return_url to $return_path to make it more clear that it is a relative...
[friendica.git] / mod / unfollow.php
index 6ec8a8fdb47027aed8f5d4c07a8e318c5032f50f..2a60322f02d9b2d9043822e8cdaf9c26a8024d70 100644 (file)
@@ -14,7 +14,7 @@ use Friendica\Model\User;
 
 function unfollow_post(App $a)
 {
-       $return_url = 'contacts';
+       $return_path = 'contacts';
 
        if (!local_user()) {
                notice(L10n::t('Permission denied.'));
@@ -32,17 +32,17 @@ function unfollow_post(App $a)
 
        if (!DBA::isResult($contact)) {
                notice(L10n::t("You aren't following this contact."));
-               $a->internalRedirect($return_url);
+               $a->internalRedirect($return_path);
                // NOTREACHED
        }
 
        if (!empty($_REQUEST['cancel'])) {
-               $a->internalRedirect($return_url . '/' . $contact['id']);
+               $a->internalRedirect($return_path . '/' . $contact['id']);
        }
 
        if (!in_array($contact['network'], Protocol::NATIVE_SUPPORT)) {
                notice(L10n::t('Unfollowing is currently not supported by your network.'));
-               $a->internalRedirect($return_url . '/' . $contact['id']);
+               $a->internalRedirect($return_path . '/' . $contact['id']);
                // NOTREACHED
        }
 
@@ -69,7 +69,7 @@ function unfollow_post(App $a)
 
 function unfollow_content(App $a)
 {
-       $return_url = 'contacts';
+       $return_path = 'contacts';
 
        if (!local_user()) {
                notice(L10n::t('Permission denied.'));
@@ -88,7 +88,7 @@ function unfollow_content(App $a)
 
        if (!DBA::isResult($contact)) {
                notice(L10n::t("You aren't following this contact."));
-               $a->internalRedirect($return_url);
+               $a->internalRedirect($return_path);
                // NOTREACHED
        }
 
@@ -105,7 +105,7 @@ function unfollow_content(App $a)
 
        if (!DBA::isResult($self)) {
                notice(L10n::t('Permission denied.'));
-               $a->internalRedirect($return_url);
+               $a->internalRedirect($return_path);
                // NOTREACHED
        }