Ignore:
Timestamp:
Jan 17, 2012, 1:11:14 AM (12 years ago)
Author:
plg
Message:

feature 2548 (multiple sizes): adapt the web API method pwg.images.add (used
by pLoader, Digikam, Lightroom, iPhoto), pwg.images.checkFiles (pLoader only).

The "resize" parameter was removed for pwg.images.add since this behavior
becomes the default behavior in Piwigo 2.4.

Just like pwg.images.addSimple, pwg.images.add now uses the add_uploaded_file
function (next step is to merge pwg.images.add and pwg.images.addSimple)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/include/functions.php

    r12875 r12906  
    23082308  }
    23092309}
     2310
     2311function delete_element_derivatives($ids)
     2312{
     2313  // todo
     2314  if (!is_array($ids))
     2315  {
     2316    $ids = array($ids);
     2317  }
     2318
     2319  // for now I do a massive clear, to be removed once the function is
     2320  // properly implemented
     2321  clear_derivative_cache();
     2322}
    23102323?>
Note: See TracChangeset for help on using the changeset viewer.