? 126423_token_node_author_mail.patch
? 226074_menupath_menu_fixups_42.patch
? 226074_menupath_menu_fixups_44.patch
? 226074_menupath_menu_fixups_46.patch
? 226074_menupath_menu_fixups_49.patch
? 258326_token_bookpath_hierarchy_broken_deep.patch
? 294966_token_actions_missing_user_context.patch
? drupal_token_0.diff
? menu_minus_book_changes.patch
? token-date-2.patch
? working_menu.patch
Index: token_actions.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/token/token_actions.module,v
retrieving revision 1.4.2.5
diff -u -p -r1.4.2.5 token_actions.module
--- token_actions.module	2 Aug 2008 17:20:36 -0000	1.4.2.5
+++ token_actions.module	17 Aug 2008 15:38:07 -0000
@@ -189,6 +189,11 @@ function token_actions_message_action(&$
   if (!empty($context['node']) && empty($context['user'])) {
     $context['user'] = user_load(array('uid' => $context['node']->uid));
   }
+  // If we don't have a node user or a $context user, let's try the global user.
+  if (empty($context['user'])) {
+    global $user;
+    $context['user'] = $user;
+  }
   $context['message'] = token_replace_multiple($context['message'], $context);
   drupal_set_message($context['message']);
 }
