Index: revision_moderation.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/revision_moderation/revision_moderation.module,v
retrieving revision 1.39.2.5
diff -u -p -r1.39.2.5 revision_moderation.module
--- revision_moderation.module	20 Dec 2008 23:47:17 -0000	1.39.2.5
+++ revision_moderation.module	21 Dec 2008 00:14:20 -0000
@@ -148,8 +148,10 @@ function revision_moderation_nodeapi(&$n
       // Display more descriptive message at the top of node revision views, including operations
       // that the current user has available to them.
       $current_vid = db_result(db_query('SELECT vid FROM {node} WHERE nid = %d', $node->nid));
+      // Get username for the revision rather than the original node.
+      $revision_author = user_load($node->revision_uid);
       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)));
+        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 ($access_update) {
           drupal_set_message(l(t('Edit revision'), "node/$node->nid/revisions/$node->vid/edit"));
           // If this revision is old, show an option to revert to it.
@@ -334,7 +336,9 @@ function revision_moderation_get_node_pe
  * Menu callback; edit revision.
  */
 function revision_moderation_edit($node) {
-  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)));
+  // Get username for the revision rather than the original node.
+  $revision_author = user_load($node->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);
 }
 
