mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-19 19:09:13 -04:00
Don't show a link to the user profile for the guest user
This commit is contained in:
@@ -8,10 +8,16 @@
|
||||
width="32"
|
||||
height="32" />
|
||||
<?= gallery::date_time($comment->created) ?>
|
||||
<? if ($comment->author()->guest): ?>
|
||||
<?= t('%author_name said <em>%comment_text</em>',
|
||||
array("author_name" => html::clean($comment->author_name()),
|
||||
"comment_text" => text::limit_words(nl2br(html::purify($comment->text)), 50))); ?>
|
||||
<? else: ?>
|
||||
<?= t('<a href="%url">%author_name</a> said <em>%comment_text</em>',
|
||||
array("author_name" => html::clean($comment->author_name()),
|
||||
"url" => user_profile::url($comment->author_id),
|
||||
"comment_text" => text::limit_words(nl2br(html::purify($comment->text)), 50))); ?>
|
||||
<? endif ?>
|
||||
</li>
|
||||
<? endforeach ?>
|
||||
</ul>
|
||||
|
||||
Reference in New Issue
Block a user