From c0312de38fd63babffb0cad31261eb76fed86a37 Mon Sep 17 00:00:00 2001 From: jangliss Date: Mon, 29 Mar 2004 19:03:25 +0000 Subject: [PATCH] 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 --- src/read_body.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 .= '
'. -- 2.25.1