mirror of
https://github.com/openvk/openvk
synced 2024-11-11 01:19:53 +03:00
Support: If the agent does not have a surname, do not display an extra dot
This commit is contained in:
parent
9faf3090cd
commit
3bbdb3c85b
1 changed files with 6 additions and 1 deletions
|
@ -73,7 +73,12 @@
|
|||
{if $thisUser->getChandlerUser()->can("write")->model('openvk\Web\Models\Entities\TicketReply')->whichBelongsTo(0)}
|
||||
<a href="{$comment->getUser()->getURL()}">
|
||||
<span class="nobold">
|
||||
({$comment->getUser()->getFirstName()} {iconv_substr($comment->getUser()->getLastName(), 0, 1)}.)
|
||||
{var lastName = $comment->getUser()->getLastName()}
|
||||
{if empty($lastName)}
|
||||
{$comment->getUser()->getFirstName()}
|
||||
{else}
|
||||
({$comment->getUser()->getFirstName()} {iconv_substr($lastName, 0, 1)}.)
|
||||
{/if}
|
||||
</span>
|
||||
</a>
|
||||
{/if}
|
||||
|
|
Loading…
Reference in a new issue