Show
Ignore:
Timestamp:
09/20/08 00:59:41 (5 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.

Files:
1 modified

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