Three small bugfixes
* Remove files from the database even if they couldn't be removed from disk. (log a warning) * Return a better error message if the user attempts to delete a scheduled file * Attempt to squash headers already sent warning during buffer flushing in FileIO.php
This commit is contained in:
parent
7fd58ac51b
commit
69b03cdefa
3 changed files with 13 additions and 1 deletions
|
@ -356,6 +356,8 @@ class LibraryController extends Zend_Controller_Action
|
|||
$res = $file->delete();
|
||||
} catch (FileNoPermissionException $e) {
|
||||
$message = $noPermissionMsg;
|
||||
} catch (DeleteScheduledFileException $e) {
|
||||
$message = _("Could not delete file because it is scheduled in the future.");
|
||||
} catch (Exception $e) {
|
||||
//could throw a scheduled in future exception.
|
||||
$message = _("Could not delete file(s).");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue