mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-06 08:43:31 +02:00
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) git-svn-id: http://piwigo.org/svn/trunk@12906 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -2307,4 +2307,17 @@ function clear_derivative_cache_rec($path, $pattern)
|
||||
return $rmdir;
|
||||
}
|
||||
}
|
||||
|
||||
function delete_element_derivatives($ids)
|
||||
{
|
||||
// todo
|
||||
if (!is_array($ids))
|
||||
{
|
||||
$ids = array($ids);
|
||||
}
|
||||
|
||||
// for now I do a massive clear, to be removed once the function is
|
||||
// properly implemented
|
||||
clear_derivative_cache();
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user