info(L10n::tt("%d contact edited.", "%d contacts edited.", $count_actions));
}
- if (x($_SESSION, 'return_url')) {
- goaway('' . $_SESSION['return_url']);
- } else {
- goaway('contacts');
- }
+ goaway('contacts');
}
function contacts_post(App $a)
}
// Now check how the user responded to the confirmation query
if (x($_REQUEST, 'canceled')) {
- if (x($_SESSION, 'return_url')) {
- goaway('' . $_SESSION['return_url']);
- } else {
- goaway('contacts');
- }
+ goaway('contacts');
}
_contact_drop($orig_record);
info(L10n::t('Contact has been removed.') . EOL);
- if (x($_SESSION, 'return_url')) {
- goaway('' . $_SESSION['return_url']);
- } else {
- goaway('contacts');
- }
+
+ goaway('contacts');
return; // NOTREACHED
}
if ($cmd === 'posts') {
// Now check how the user responded to the confirmation query
if (!empty($_REQUEST['canceled'])) {
- goaway($_SESSION['return_url']);
+ goaway('/message');
}
$cmd = $a->argv[1];
info(L10n::t('Message deleted.') . EOL);
}
- //goaway(System::baseUrl(true) . '/message' );
- goaway($_SESSION['return_url']);
+ goaway('/message' );
} else {
$r = q("SELECT `parent-uri`,`convid` FROM `mail` WHERE `id` = %d AND `uid` = %d LIMIT 1",
intval($a->argv[2]),
info(L10n::t('Conversation removed.') . EOL);
}
}
- //goaway(System::baseUrl(true) . '/message' );
- goaway($_SESSION['return_url']);
+ goaway('/message' );
}
}