Move this to where we actually use it
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 1 Sep 2010 06:06:13 +0000 (00:06 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Wed, 1 Sep 2010 07:24:20 +0000 (01:24 -0600)
imp/message.php

index eba2659..464d9b3 100644 (file)
@@ -171,9 +171,6 @@ case 'strip_attachment':
     break;
 }
 
-/* Token to use in requests */
-$message_token = Horde::getRequestToken('imp.message');
-
 /* We may have done processing that has taken us past the end of the
  * message array, so we will return to mailbox.php if that is the
  * case. */
@@ -226,6 +223,7 @@ $page_label = IMP::getLabel(IMP::$mailbox);
 /* Generate the link to ourselves. */
 $msgindex = $imp_mailbox->getMessageIndex();
 $message_url = Horde::applicationUrl('message.php');
+$message_token = Horde::getRequestToken('imp.message');
 $self_link = IMP::generateIMPUrl('message.php', IMP::$mailbox, $uid, $mailbox_name)->add(array('start' => $msgindex, 'message_token' => $message_token));
 
 /* Develop the list of headers to display. */