mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-21 09:03:38 +02:00
feature added: ability to set rank from webservice upload.
git-svn-id: http://piwigo.org/svn/trunk@2520 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -10,7 +10,7 @@ use Getopt::Long;
|
||||
my %opt = ();
|
||||
GetOptions(
|
||||
\%opt,
|
||||
qw/action=s file=s thumbnail=s category_id=i name=s/
|
||||
qw/action=s file=s thumbnail=s category_id=i name=s rank=i/
|
||||
);
|
||||
|
||||
our $ua = LWP::UserAgent->new;
|
||||
@@ -61,6 +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,
|
||||
};
|
||||
|
||||
my $response = $ua->post(
|
||||
|
||||
Reference in New Issue
Block a user