The module displays all revisions as authored by Anonymous or Anonymous (not verified) in all views (revisions list and the actual diff view). I believe this because the correct object is not being passed into the theme('username', $array) functions in diff.pages.inc. I think the function is expecting at least an array with an item whose key is account and value is a user object.

I am using Diff 7.x.-2.0-beta2 and Drupal Core 7.0-rc1.

Comments

pmorel’s picture

StatusFileSize
new1.41 KB
-          '!username' => theme('username', array('name' => $revision))))
+          '!username' => theme('username', array('account' => $revision))))

fixes the problem.

quartsize’s picture

Status: Active » Needs review
StatusFileSize
new2.06 KB

This patch extends pmorel's fix in #1 to the diff view as well as the revisions list.

mariusz.slonina’s picture

Works on my local box (D7.0, Diff-beta2), thanks :)

amanaplan’s picture

Status: Needs review » Reviewed & tested by the community

Works for me too (Diff 7.x.-2.0-beta2 and Drupal Core 7.0). Marking at RTBC.

hansfn’s picture

Bump. Works for me too.

xenyo’s picture

Worked Great for me Thx.

ginc’s picture

Status: Reviewed & tested by the community » Patch (to be ported)

seems OK

wagafo’s picture

I have this issue with Drupal 6, Diff 6.x-2.x-dev (2011-Febrer-25), at the relevant lines it says:

'!username' => theme('username', $revision)

so it seems that this patch cannot be applied to version 6. Any suggestion for drupal 6 and Diff 6?

CandC540’s picture

Works on my local install as well.

fonant’s picture

Patch #2 above works fine for me, Drupal 7 and Diff 7.x-2.0-beta2

drunken monkey’s picture

Please see #1182154-3: Offering to maintain Diff if you'd be willing to take over this project.
Hopefully, this way all these issues with working patches will finally be fixed.

danepowell’s picture

StatusFileSize
new2.19 KB

Here's a version of #2 that can be applied with Git

realityloop’s picture

Status: Patch (to be ported) » Fixed

fixed in dev

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.