aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2012-01-17 00:17:39 +0000
committerplegall <plg@piwigo.org>2012-01-17 00:17:39 +0000
commitb18e3c8a803b15fc72f95791072220afb23f46bf (patch)
treed815b81e501c6b626f53c915764c71caa40d7ecf /admin
parentf7421e5789f6117ccab81ea53bf24d6cd77e95c7 (diff)
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
Diffstat (limited to '')
-rw-r--r--admin/include/functions_upload.inc.php2
1 files changed, 2 insertions, 0 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
{