Quantcast
Channel: Zenphoto forum
Viewing all articles
Browse latest Browse all 2917

jphilbert on "How to get setComment to work"

$
0
0

I just added "getcomment" to work in the Zenphoto lightroom plugin it can now syn all comments of images

but for some reason I can get "setComment" to work .. what am I missing?

function addImageComments($args) {
global $_zp_current_image;
$v = var_export($args, true);
debuglog ('addImageComments');
debuglog ($v);
if (is_object($login_state = authorize($args))) return $login_state;

$args = decode64($args);
$image = getImageForImageID($args['Id']);
if ($image->filename)
$image->setCommentsAllowed;
$image->setComments($args['commentText']);
else
return new IXR_Error(-1, 'Image not found on server '.$obj['filename']);

return true;
}


Viewing all articles
Browse latest Browse all 2917

Trending Articles