Changeset 2520


Ignore:
Timestamp:
Sep 12, 2008, 12:19:04 AM (16 years ago)
Author:
plg
Message:

feature added: ability to set rank from webservice upload.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/ws_functions.inc.php

    r2516 r2520  
    829829  // thumbnail_content
    830830  // thumbnail_sum
     831  // rank
    831832
    832833  // $fh_log = fopen('/tmp/php.log', 'w');
     
    927928  $insert = array(
    928929    'category_id' => $params['category_id'],
    929     'image_id'=> $image_id,
     930    'image_id' => $image_id,
     931    'rank' => $params['rank'],
    930932    );
    931933  mass_inserts(
  • trunk/tools/piwigo_remote.pl

    r2519 r2520  
    1111GetOptions(
    1212    \%opt,
    13     qw/action=s file=s thumbnail=s category_id=i name=s/
     13    qw/action=s file=s thumbnail=s category_id=i name=s rank=i/
    1414);
    1515
     
    6262        category_id => $opt{category_id},
    6363        name => $opt{name},
     64        rank => defined($opt{rank}) ? $opt{rank} : 1,
    6465    };
    6566
  • trunk/ws.php

    r2516 r2520  
    182182      'file_sum',
    183183      'thumbnail_content',
    184       'thumbnail_sum'
     184      'thumbnail_sum',
     185      'rank',
    185186      ),
    186187    'POST method only'
Note: See TracChangeset for help on using the changeset viewer.