mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-05-07 00:25:50 +03:00
fixes #593, delete by blocks of 100 photos, with a progress bar
This commit is contained in:
parent
3a8b26726f
commit
e6e7465b9d
5 changed files with 122 additions and 7 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue