diff options
author | plegall <plg@piwigo.org> | 2012-01-17 00:11:14 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2012-01-17 00:11:14 +0000 |
commit | f7421e5789f6117ccab81ea53bf24d6cd77e95c7 (patch) | |
tree | fc93315aae6255732df8e6a83e6b26be1da79035 /admin/include/functions.php | |
parent | a7f39070f4dd3f568117f5ebc0c41c468abeae88 (diff) |
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
Diffstat (limited to '')
-rw-r--r-- | admin/include/functions.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/admin/include/functions.php b/admin/include/functions.php index f754f446a..1f09d69df 100644 --- a/admin/include/functions.php +++ b/admin/include/functions.php @@ -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(); +} ?>
\ No newline at end of file |