Commit 3276abeb authored by Aaron Wells's avatar Aaron Wells Committed by Gerrit Code Review
Browse files

Make the message "Compose" button return you to the "Sent messages" screen

Bug 1387511: Also making the "Sent messages" screen into the default return
screen regardless of how you got to the Compose screen.

Change-Id: Ifa3d48fa4cc1cd15a6ae3218915f336216cc6473
parent cd1d8434
...@@ -153,16 +153,14 @@ switch ($returnto) { ...@@ -153,16 +153,14 @@ switch ($returnto) {
case 'inbox': case 'inbox':
$goto = 'account/activity'; $goto = 'account/activity';
break; break;
case 'outbox':
$goto = 'artefact/multirecipientnotification/outbox.php';
break;
case 'institution': case 'institution':
$goto = ($inst = param_alpha('inst', null)) $goto = ($inst = param_alpha('inst', null))
? 'institution/index.php?institution=' . $inst ? 'institution/index.php?institution=' . $inst
: 'account/activity'; : 'account/activity';
break; break;
default: default:
$goto = 'user/myfriends.php'; $goto = 'artefact/multirecipientnotification/outbox.php';
break;
} }
if ($offset > 0) { if ($offset > 0) {
$goto .= (strpos($goto,'?')) ? '&offset=' . $offset : '?offset=' . $offset; $goto .= (strpos($goto,'?')) ? '&offset=' . $offset : '?offset=' . $offset;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment