diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2013-12-02 14:59:09 +0400 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2013-12-02 19:06:36 +0400 |
commit | 1a197292da1e7955c2599591a672d24b5e0a3f4b (patch) | |
tree | 246e46425f9283c6523b2b0b28c65a3e70d3a1f9 /apps/files_trashbin | |
parent | 3b59979746f84d48d6374fa732f564f4c6b9cd63 (diff) |
set delete all to true if a complete folder was deleted
Diffstat (limited to 'apps/files_trashbin')
-rw-r--r-- | apps/files_trashbin/ajax/delete.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files_trashbin/ajax/delete.php b/apps/files_trashbin/ajax/delete.php index 7b1949e3154..7b41eb1ea80 100644 --- a/apps/files_trashbin/ajax/delete.php +++ b/apps/files_trashbin/ajax/delete.php @@ -4,8 +4,8 @@ OCP\JSON::checkLoggedIn(); OCP\JSON::callCheck(); // "empty trash" command -$deleteAll = false; if (isset($_POST['allfiles']) and $_POST['allfiles'] === 'true'){ + $deleteAll = true; $folder = isset($_POST['dir']) ? $_POST['dir'] : '/'; if ($folder === '/') { OCA\Files_Trashbin\Trashbin::deleteAll(); @@ -20,6 +20,7 @@ if (isset($_POST['allfiles']) and $_POST['allfiles'] === 'true'){ } } else { + $deleteAll = false; $files = $_POST['files']; $dirlisting = $_POST['dirlisting']; $list = json_decode($files); |