bug 1534: if you're a guest, if configuration tells you can't add user
comments, you won't see the form on the picture page. git-svn-id: http://piwigo.org/svn/trunk@5649 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
69756042c7
commit
7424433a54
1 changed files with 11 additions and 3 deletions
|
|
@ -211,9 +211,17 @@ $validated_clause.'
|
|||
}
|
||||
}
|
||||
|
||||
if (!is_a_guest()
|
||||
or (is_a_guest() and $conf['comments_forall'])
|
||||
or (empty($edit_comment)))
|
||||
$show_add_comment_form = true;
|
||||
if (isset($edit_comment))
|
||||
{
|
||||
$show_add_comment_form = false;
|
||||
}
|
||||
if (is_a_guest() and !$conf['comments_forall'])
|
||||
{
|
||||
$show_add_comment_form = false;
|
||||
}
|
||||
|
||||
if ($show_add_comment_form)
|
||||
{
|
||||
$key = get_comment_post_key($page['image_id']);
|
||||
$content = '';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue