X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fread_body.php;h=a4588362c4a0b64eb3ebaeb0c7e3b11b82054287;hb=b7043f905faff3c0e7e6ab8bfe7a658372de3ce2;hp=916df1679ecc14e2ac9c91b5bf559bd2ec68f83a;hpb=48dc9174a0a3737d68d0c5e0a4e85185a6739019;p=squirrelmail.git
diff --git a/src/read_body.php b/src/read_body.php
index 916df167..a4588362 100644
--- a/src/read_body.php
+++ b/src/read_body.php
@@ -1,9 +1,8 @@
)';
}
- $menu_row .= $topbar_delimiter.$delete_link;
+ $menu_row .= $topbar_delimiter.$delete_link . "\n";
// Add top move link
$menu_row .= '
';
- if (!(isset($passed_ent_id) && $passed_ent_id)) {
- $menu_row .= '';
+ $menu_row .= ' ';
+
+ $menu_row .= getButton('SUBMIT', 'moveButton',_("Move")) . "\n" . '';
}
$menu_row .= ' | ';
// echo rows, with hooks
- do_hook('read_body_menu_top');
+ $ret = do_hook_function('read_body_menu_top', array($nav_row, $menu_row));
+ if (is_array($ret)) {
+ if (isset($ret[0]) && !empty($ret[0])) {
+ $nav_row = $ret[0];
+ }
+ if (isset($ret[1]) && !empty($ret[1])) {
+ $menu_row = $ret[1];
+ }
+ }
echo '';
echo $nav_on_top ? $nav_row . $menu_row : $menu_row . $nav_row;
echo '
'."\n";
@@ -790,25 +808,6 @@ if ( sqgetGlobalVar('delete_id', $delete_id, SQ_GET) ) {
sqimap_mailbox_expunge_dmn($delete_id);
}
-/**
- * Process Move from delete-move-next
- * but only if move_id and target_mailbox were set
- */
-if ( sqgetGlobalVar('move_id', $move_id, SQ_POST) &&
- sqgetGlobalVar('targetMailbox', $targetMailbox, SQ_POST) ) {
- // Move message
- sqimap_messages_copy($imapConnection, $move_id, $move_id, $targetMailbox);
- sqimap_messages_flag($imapConnection, $move_id, $move_id, 'Deleted', true);
-
- sqimap_mailbox_expunge_dmn($move_id);
-
- if ($targetMailbox != $lastTargetMailbox) {
- $lastTargetMailbox = $targetMailbox;
- sqsession_register('lastTargetMailbox' , $lastTargetMailbox);
- }
-}
-
-
/**
* $message contains all information about the message
* including header and body