From: jangliss Date: Mon, 29 Mar 2004 19:03:25 +0000 (+0000) Subject: Putting back old plugin behaviour. On moving the last message, the DMN plugin X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=c0312de38fd63babffb0cad31261eb76fed86a37;p=squirrelmail.git Putting back old plugin behaviour. On moving the last message, the DMN plugin used to select the new last message. In 1.5.0, it selected the mailbox. I have reverted the behaviour git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@6954 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/src/read_body.php b/src/read_body.php index 54ae40ea..9f1cad70 100644 --- a/src/read_body.php +++ b/src/read_body.php @@ -687,9 +687,11 @@ function formatMenubar($mailbox, $passed_id, $passed_ent_id, $message, $mbx_resp // Set subsequent location based on whether or not there is a 'next' message. if ( isset($next) && $next >= 0 ) { - $location = $base_uri . 'src/read_body.php?passed_id='.$next.'&'; + $location = $base_uri . 'src/read_body.php?passed_id='.$next.'&'; + } elseif (isset($prev) && $prev >= 0) { + $location = $base_uri . 'src/read_body.php?passed_id='.$prev.'&'; } else { - $location = $base_uri . 'src/right_main.php?'; + $location = $base_uri . 'src/right_main.php?'; } $menu_row .= '
'.