Merge pull request #2417 from owncloud/trash_more_error_logs

add some error logs to the trash bin app
remotes/origin/stable6
Thomas Tanghus 12 years ago
commit a50d53c4dd
  1. 2
      apps/files_trashbin/ajax/delete.php
  2. 1
      apps/files_trashbin/ajax/undelete.php

@ -10,6 +10,7 @@ $list = json_decode($files);
$error = array();
$success = array();
$i = 0;
foreach ($list as $file) {
if ( $dirlisting=='0') {
@ -28,6 +29,7 @@ foreach ($list as $file) {
$i++;
} else {
$error[] = $filename;
OC_Log::write('trashbin','can\'t delete ' . $filename . ' permanently.', OC_Log::ERROR);
}
}

@ -24,6 +24,7 @@ foreach ($list as $file) {
if ( !OCA\Files_Trashbin\Trashbin::restore($file, $filename, $timestamp) ) {
$error[] = $filename;
OC_Log::write('trashbin','can\'t restore ' . $filename, OC_Log::ERROR);
} else {
$success[$i]['filename'] = $file;
$success[$i]['timestamp'] = $timestamp;

Loading…
Cancel
Save