replaced $return_url to $return_path to make it more clear that it is a relative path to the Friendica baseurl

This commit is contained in:
Philipp Holzer 2018-10-19 23:55:11 +02:00
parent a9510ffcdf
commit 3edad1591e
No known key found for this signature in database
GPG key ID: 517BE60E2CE5C8A5
12 changed files with 44 additions and 44 deletions

View 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
}