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

View file

@ -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;
}
?>
?>