mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-06 18:01:31 +02:00
fixes #593, delete by blocks of 100 photos, with a progress bar
This commit is contained in:
@@ -1739,6 +1739,20 @@ function ws_images_delete($params, $service)
|
||||
include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
|
||||
delete_elements($image_ids, true);
|
||||
invalidate_user_cache();
|
||||
|
||||
if ($params['return_details'])
|
||||
{
|
||||
return array(
|
||||
'success' => true,
|
||||
'details' => array(
|
||||
'nb_processed' => count($image_ids),
|
||||
),
|
||||
);
|
||||
}
|
||||
else
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1760,4 +1774,4 @@ function ws_images_checkUpload($params, $service)
|
||||
return $ret;
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user