summaryrefslogtreecommitdiff
path: root/modules/comment/models
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-07-29 17:35:56 -0700
committerBharat Mediratta <bharat@menalto.com>2009-07-29 17:35:56 -0700
commit2473418ea3156e75d10afe9d9e10b7a974f2c6dc (patch)
tree1dcfcdbf15518339cb4f507338547300fb1d944a /modules/comment/models
parent15f148349e8dd9145d33fbdbc85142b9a864b6ed (diff)
Show the author's username if the author has no fullname. Fixes ticket #601.
Diffstat (limited to 'modules/comment/models')
-rw-r--r--modules/comment/models/comment.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/comment/models/comment.php b/modules/comment/models/comment.php
index 551fb245..d052a39c 100644
--- a/modules/comment/models/comment.php
+++ b/modules/comment/models/comment.php
@@ -31,7 +31,7 @@ class Comment_Model extends ORM {
if ($author->guest) {
return $this->guest_name;
} else {
- return $author->full_name;
+ return $author->display_name();
}
}