mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-06 18:01:31 +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:
@@ -80,7 +80,7 @@ function ws_addDefaultMethods( $arr )
|
||||
$service->addMethod('pwg.images.addComment', 'ws_images_addComment',
|
||||
array(
|
||||
'image_id' => array(),
|
||||
'author' => array( 'default' => $user['is_the_guest']? 'guest':$user['username']),
|
||||
'author' => array( 'default' => is_a_guest()? 'guest':$user['username']),
|
||||
'content' => array(),
|
||||
'key' => array(),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user