WordPress.org

Ready to get started?Download WordPress

Forums

NextGEN Gallery
[resolved] XMLRPC method ngg.editAlbum and nggdb::update_album parameters mismatch (2 posts)

  1. vlad13
    Member
    Posted 2 years ago #

    Alex,
    I am implementing support for the NextGEN Gallery in my Lightroom plug-in (http://alloyphoto.com/plugins/nextgen/), and I have noticed an issue with invoking the nggdb::update_album() method from nggXMLRPC::editAlbum:

    This is how the method is being invoked:

    $result = nggdb::update_album($id, $name, $preview, $description, $description, $galleries);

    and this is the function declaration:

    function update_album($id, $name = false, $previewpic = false, $description = false, $sortorder = false, $pageid = false )

    Notice the last two parameters - instead of $sortorder and $pageid you are passing the $description (a second time) and $galleries, which causes the SQL update query to fail.

    Could you comment on that? Thanks a lot.

  2. Alex Rabe
    Member
    Posted 2 years ago #

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.