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:
plegall 2010-04-04 22:00:29 +00:00
commit 7424433a54

View file

@ -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 = '';