Skip to content

Commit

Permalink
feature 2548 (multiple size): better delete derivatives in add_upload…
Browse files Browse the repository at this point in the history
…ed_file

function when performing an update of a photo.


git-svn-id: http://piwigo.org/svn/trunk@12907 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
plegall committed Jan 17, 2012
1 parent f7421e5 commit b18e3c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 2 additions & 0 deletions admin/include/functions_upload.inc.php
Expand Up @@ -292,6 +292,8 @@ function add_uploaded_file($source_filepath, $original_filename=null, $categorie
$update,
array('id' => $image_id)
);

delete_element_derivatives($image_id);
}
else
{
Expand Down
3 changes: 0 additions & 3 deletions include/ws_functions.inc.php
Expand Up @@ -1755,9 +1755,6 @@ function ws_images_addFile($params, &$service)
$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)
Expand Down

0 comments on commit b18e3c8

Please sign in to comment.