mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
Resolved issue 0000697: with generic user a author name is necessary to comment picture.
+ Change way to determinate if user is a guest (use functions like is_admin) git-svn-id: http://piwigo.org/svn/trunk@2029 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -58,7 +58,7 @@ function user_comment_check($action, $comment)
|
||||
return $action;
|
||||
|
||||
// we do here only BASIC spam check (plugins can do more)
|
||||
if ( !$user['is_the_guest'] )
|
||||
if ( !is_a_guest() )
|
||||
return $action;
|
||||
|
||||
$link_count = preg_match_all( '/https?:\/\//',
|
||||
@@ -118,7 +118,8 @@ function insert_user_comment( &$comm, $key, &$infos )
|
||||
$comment_action='moderate'; //one of validate, moderate, reject
|
||||
}
|
||||
|
||||
if ( $user['is_the_guest'] )
|
||||
// display author field if the user status is guest or generic
|
||||
if (!is_classic_user())
|
||||
{
|
||||
if ( empty($comm['author']) )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user