Changeset 2553 for trunk/tools


Ignore:
Timestamp:
Sep 20, 2008, 12:59:41 AM (16 years ago)
Author:
plg
Message:

improvement: instead of sending the images_max_rank of each category in
pwg.categories.getList so that you can correctly set the rank in
pwg.images.add, the rank is calculated automatically in pwg.images.add so
that the image is added at the end of the category.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/piwigo_remote.pl

    r2520 r2553  
    1111GetOptions(
    1212    \%opt,
    13     qw/action=s file=s thumbnail=s category_id=i name=s rank=i/
     13    qw/action=s file=s thumbnail=s category_id=i name=s rank=s/
    1414);
    1515
     
    6262        category_id => $opt{category_id},
    6363        name => $opt{name},
    64         rank => defined($opt{rank}) ? $opt{rank} : 1,
     64        rank => defined($opt{rank}) ? $opt{rank} : 'auto',
    6565    };
    6666
Note: See TracChangeset for help on using the changeset viewer.