Index: revision_moderation.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/revision_moderation/revision_moderation.module,v retrieving revision 1.26.2.15 diff -u -p -r1.26.2.15 revision_moderation.module --- revision_moderation.module 19 Dec 2008 23:13:44 -0000 1.26.2.15 +++ revision_moderation.module 21 Dec 2008 00:26:20 -0000 @@ -149,7 +149,9 @@ function revision_moderation_nodeapi(&$n // that the current user has available to them. $current_vid = db_result(db_query('SELECT vid FROM {node} WHERE nid = %d', $node->nid)); if ($node->vid != $current_vid) { - drupal_set_message(t('You are currently viewing a revision of this post created on @date by @author.', array('@date' => format_date($node->changed, 'small'), '@author' => $node->name))); + $revision_uid = db_result(db_query('SELECT uid FROM {node_revisions} WHERE vid = %d', $node->vid)); + $revision_author = user_load(array('uid' => $revision_uid)); + drupal_set_message(t('You are currently viewing a revision of this post created on @date by !author.', array('@date' => format_date($node->revision_timestamp, 'small'), '!author' => theme('username', $revision_author)))); if (node_access('update', $node)) { drupal_set_message(l(t('Edit revision'), "node/$node->nid/revisions/$node->vid/edit")); } @@ -319,7 +321,9 @@ function revision_moderation_get_node_pe */ function revision_moderation_edit($nid, $vid) { $node = node_load($nid, $vid); - drupal_set_message(t('You are currently editing a revision of this post created on @date by @author.', array('@date' => format_date($node->changed, 'small'), '@author' => $node->name))); + $revision_uid = db_result(db_query('SELECT uid FROM {node_revisions} WHERE vid = %d', $node->vid)); + $revision_author = user_load(array('uid' => $revision_uid)); + drupal_set_message(t('You are currently editing a revision of this post created on @date by !author.', array('@date' => format_date($node->revision_timestamp, 'small'), '!author' => theme('username', $revision_author)))); return drupal_get_form($node->type .'_node_form', $node); }