mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-27 11:49:56 +03: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:
parent
f7421e5789
commit
b18e3c8a80
2 changed files with 2 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue