diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-07-19 16:50:35 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-07-19 16:50:35 -0700 |
commit | 51dca582cd2cda9416ec0172f8ed9a19ba828fec (patch) | |
tree | 66f988ab4dd00d25a32452cdd2aa32835cb5dcd9 /modules/info | |
parent | 2572e5810f9d66fa39fa97838818a25bf4f393f3 (diff) |
More thorough fix for #421. Create User_Model::display_name() which
uses the full name if there is one, or falls back to the name if
that's all we have.
Diffstat (limited to 'modules/info')
-rw-r--r-- | modules/info/views/info_block.html.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/info/views/info_block.html.php b/modules/info/views/info_block.html.php index 9f544376..f86ae39d 100644 --- a/modules/info/views/info_block.html.php +++ b/modules/info/views/info_block.html.php @@ -26,9 +26,9 @@ <li> <strong class="caption"><?= t("Owner:") ?></strong> <? if ($item->owner->url): ?> - <a href="<?= $item->owner->url ?>"><?= p::clean($item->owner->full_name) ?></a> + <a href="<?= $item->owner->url ?>"><?= p::clean($item->owner->display_name()) ?></a> <? else: ?> - <?= p::clean($item->owner->name) ?> + <?= p::clean($item->owner->display_name()) ?> <? endif ?> </li> <? endif ?> |