Index: token.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/token/token.module,v
retrieving revision 1.5.2.12
diff -u -p -r1.5.2.12 token.module
--- token.module        17 Jan 2008 10:46:16 -0000      1.5.2.12
+++ token.module        16 May 2008 23:51:49 -0000
@@ -143,6 +143,7 @@ function token_include() {
  *   made.
  **/
 function token_replace($original, $type = 'global', $object = NULL, $leading = '[', $trailing = ']', $options = array()) {
+  $object = node_load($object->nid);
   $full = token_get_values($type, $object, FALSE, $options);
   return _token_replace_tokens($original, $full->tokens, $full->values, $leading, $trailing);
 }
