mirror of
https://github.com/friendica/friendica
synced 2024-12-23 07:20:15 +00:00
replace session return url by static pages
This commit is contained in:
parent
0a699be3c0
commit
57fe36e9a3
3 changed files with 8 additions and 21 deletions
|
@ -168,11 +168,7 @@ function contacts_batch_actions(App $a)
|
||||||
info(L10n::tt("%d contact edited.", "%d contacts edited.", $count_actions));
|
info(L10n::tt("%d contact edited.", "%d contacts edited.", $count_actions));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (x($_SESSION, 'return_url')) {
|
goaway('contacts');
|
||||||
goaway('' . $_SESSION['return_url']);
|
|
||||||
} else {
|
|
||||||
goaway('contacts');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function contacts_post(App $a)
|
function contacts_post(App $a)
|
||||||
|
@ -476,20 +472,13 @@ function contacts_content(App $a, $update = 0)
|
||||||
}
|
}
|
||||||
// Now check how the user responded to the confirmation query
|
// Now check how the user responded to the confirmation query
|
||||||
if (x($_REQUEST, 'canceled')) {
|
if (x($_REQUEST, 'canceled')) {
|
||||||
if (x($_SESSION, 'return_url')) {
|
goaway('contacts');
|
||||||
goaway('' . $_SESSION['return_url']);
|
|
||||||
} else {
|
|
||||||
goaway('contacts');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_contact_drop($orig_record);
|
_contact_drop($orig_record);
|
||||||
info(L10n::t('Contact has been removed.') . EOL);
|
info(L10n::t('Contact has been removed.') . EOL);
|
||||||
if (x($_SESSION, 'return_url')) {
|
|
||||||
goaway('' . $_SESSION['return_url']);
|
goaway('contacts');
|
||||||
} else {
|
|
||||||
goaway('contacts');
|
|
||||||
}
|
|
||||||
return; // NOTREACHED
|
return; // NOTREACHED
|
||||||
}
|
}
|
||||||
if ($cmd === 'posts') {
|
if ($cmd === 'posts') {
|
||||||
|
|
|
@ -20,7 +20,7 @@ function follow_post(App $a)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($_REQUEST['cancel'])) {
|
if (isset($_REQUEST['cancel'])) {
|
||||||
goaway($_SESSION['return_url']);
|
goaway('contacts');
|
||||||
}
|
}
|
||||||
|
|
||||||
$uid = local_user();
|
$uid = local_user();
|
||||||
|
|
|
@ -160,7 +160,7 @@ function message_content(App $a)
|
||||||
|
|
||||||
// Now check how the user responded to the confirmation query
|
// Now check how the user responded to the confirmation query
|
||||||
if (!empty($_REQUEST['canceled'])) {
|
if (!empty($_REQUEST['canceled'])) {
|
||||||
goaway($_SESSION['return_url']);
|
goaway('/message');
|
||||||
}
|
}
|
||||||
|
|
||||||
$cmd = $a->argv[1];
|
$cmd = $a->argv[1];
|
||||||
|
@ -169,8 +169,7 @@ function message_content(App $a)
|
||||||
info(L10n::t('Message deleted.') . EOL);
|
info(L10n::t('Message deleted.') . EOL);
|
||||||
}
|
}
|
||||||
|
|
||||||
//goaway(System::baseUrl(true) . '/message' );
|
goaway('/message' );
|
||||||
goaway($_SESSION['return_url']);
|
|
||||||
} else {
|
} else {
|
||||||
$r = q("SELECT `parent-uri`,`convid` FROM `mail` WHERE `id` = %d AND `uid` = %d LIMIT 1",
|
$r = q("SELECT `parent-uri`,`convid` FROM `mail` WHERE `id` = %d AND `uid` = %d LIMIT 1",
|
||||||
intval($a->argv[2]),
|
intval($a->argv[2]),
|
||||||
|
@ -184,8 +183,7 @@ function message_content(App $a)
|
||||||
info(L10n::t('Conversation removed.') . EOL);
|
info(L10n::t('Conversation removed.') . EOL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//goaway(System::baseUrl(true) . '/message' );
|
goaway('/message' );
|
||||||
goaway($_SESSION['return_url']);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue