aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--admin/include/functions_upload.inc.php2
-rw-r--r--include/ws_functions.inc.php3
2 files changed, 2 insertions, 3 deletions
diff --git a/admin/include/functions_upload.inc.php b/admin/include/functions_upload.inc.php
index f53b2d09d..88440476a 100644
--- a/admin/include/functions_upload.inc.php
+++ b/admin/include/functions_upload.inc.php
@@ -292,6 +292,8 @@ SELECT
$update,
array('id' => $image_id)
);
+
+ delete_element_derivatives($image_id);
}
else
{
diff --git a/include/ws_functions.inc.php b/include/ws_functions.inc.php
index 7216fc31c..895e08d9c 100644
--- a/include/ws_functions.inc.php
+++ b/include/ws_functions.inc.php
@@ -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)