mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
feature 2548 (multiple size): better delete derivatives in add_uploaded_file
function when performing an update of a photo. git-svn-id: http://piwigo.org/svn/trunk@12907 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -292,6 +292,8 @@ SELECT
|
||||
$update,
|
||||
array('id' => $image_id)
|
||||
);
|
||||
|
||||
delete_element_derivatives($image_id);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -1755,9 +1755,6 @@ SELECT
|
||||
$params['image_id'],
|
||||
$image['md5sum'] // we force the md5sum to remain the same
|
||||
);
|
||||
|
||||
include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
|
||||
delete_element_derivatives($params['image_id']);
|
||||
}
|
||||
|
||||
function ws_images_add($params, &$service)
|
||||
|
||||
Reference in New Issue
Block a user