fixes #593, delete by blocks of 100 photos, with a progress bar

This commit is contained in:
plegall
2016-12-26 23:24:29 +01:00
parent 3a8b26726f
commit e6e7465b9d
5 changed files with 122 additions and 7 deletions
+4 -3
View File
@@ -361,12 +361,13 @@ DELETE
{
if (isset($_POST['confirm_deletion']) and 1 == $_POST['confirm_deletion'])
{
$deleted_count = delete_elements($collection, true);
if ($deleted_count > 0)
// now done with ajax calls, with blocks
// $deleted_count = delete_elements($collection, true);
if (count($collection) > 0)
{
$_SESSION['page_infos'][] = l10n_dec(
'%d photo was deleted', '%d photos were deleted',
$deleted_count
count($collection)
);
$redirect_url = get_root_url().'admin.php?page='.$_GET['page'];