Browse files

display username

  • Loading branch information...
1 parent f232c67 commit a192ea307bcda2175f1dd3eda5666aa8a4e471a4 @cthiel cthiel committed Sep 3, 2011
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/irwi/helpers/wiki_pages_helper.rb
View
6 lib/irwi/helpers/wiki_pages_helper.rb
@@ -48,7 +48,11 @@ def wiki_diff( old_text, new_text )
def wiki_user( user )
return ("<" + wt("Unknown") + ">").html_safe unless user
- "User##{user.id}"
+ if user.respond_to?(:name)
+ user.name
+ else
+ "User##{user.id}"
+ end
end
def wiki_linkify( str )

0 comments on commit a192ea3

Please sign in to comment.