diff options
author | plegall <plg@piwigo.org> | 2008-09-19 22:59:41 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2008-09-19 22:59:41 +0000 |
commit | d55107e3e3511e4b2c52b56aaa1d6f7c6fd46b27 (patch) | |
tree | 1c061e4d920a47e304255bbc7c05b337f526cecb /tools | |
parent | 67ffcee5040fcb20775332ae18f8da4668410c84 (diff) |
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.
git-svn-id: http://piwigo.org/svn/trunk@2553 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'tools')
-rw-r--r-- | tools/piwigo_remote.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/piwigo_remote.pl b/tools/piwigo_remote.pl index 582aca294..dcc6ba2cd 100644 --- a/tools/piwigo_remote.pl +++ b/tools/piwigo_remote.pl @@ -10,7 +10,7 @@ use Getopt::Long; my %opt = (); GetOptions( \%opt, - qw/action=s file=s thumbnail=s category_id=i name=s rank=i/ + qw/action=s file=s thumbnail=s category_id=i name=s rank=s/ ); our $ua = LWP::UserAgent->new; @@ -61,7 +61,7 @@ if ($opt{action} eq 'pwg.images.add') { thumbnail_content => $thumbnail_content, category_id => $opt{category_id}, name => $opt{name}, - rank => defined($opt{rank}) ? $opt{rank} : 1, + rank => defined($opt{rank}) ? $opt{rank} : 'auto', }; my $response = $ua->post( |