mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-19 19:09:13 -04:00
Fix for ticket #1163. Don't all guests to a comment when there are no comments and the comment access permission is register users.
This commit is contained in:
@@ -10,12 +10,16 @@
|
||||
<div id="g-comment-detail">
|
||||
<? if (!$comments->count()): ?>
|
||||
<p class="g-no-comments">
|
||||
<? if (comment::can_comment()): ?>
|
||||
<?= t("No comments yet. Be the first to <a %attrs>comment</a>!",
|
||||
array("attrs" => html::mark_clean("href=\"" . url::site("form/add/comments/{$item->id}") . "\" class=\"showCommentForm\""))) ?>
|
||||
<? else: ?>
|
||||
<?= t("No comments yet.") ?>
|
||||
<? endif ?>
|
||||
</p>
|
||||
<ul><li class="g-no-comments"> </li></ul>
|
||||
<? endif ?>
|
||||
<? if ($comments->count()): ?>
|
||||
<? else: ?>
|
||||
|
||||
<ul>
|
||||
<? foreach ($comments as $comment): ?>
|
||||
<li id="g-comment-<?= $comment->id ?>">
|
||||
|
||||
Reference in New Issue
Block a user