##// END OF EJS Templates
h.person, if author name is empty, use email as a fallback
marcink -
r3766:848492e2 beta
parent child Browse files
Show More
@@ -456,8 +456,8 b' def person(author, show_attr="username_a'
456 if user is not None:
456 if user is not None:
457 return person_getter(user)
457 return person_getter(user)
458
458
459 # Still nothing? Just pass back the author name then
459 # Still nothing? Just pass back the author name if any, else the email
460 return _author
460 return _author or _email
461
461
462
462
463 def person_by_id(id_, show_attr="username_and_name"):
463 def person_by_id(id_, show_attr="username_and_name"):
General Comments 0
You need to be logged in to leave comments. Login now