CC-5709: Airtime Analyzer
* Some cleanup and refactoring for file deletion in the Media REST API * Fix the refresh timer on the Add Media page when there's pending imports.
This commit is contained in:
parent
6952902b22
commit
db2b52a1bf
5 changed files with 35 additions and 8 deletions
|
@ -356,7 +356,6 @@ class LibraryController extends Zend_Controller_Action
|
|||
|
||||
if (isset($file)) {
|
||||
try {
|
||||
Application_Model_Preference::updateDiskUsage(-1 * abs(filesize($file->getFilePath())));
|
||||
$res = $file->delete();
|
||||
} catch (FileNoPermissionException $e) {
|
||||
$message = $noPermissionMsg;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue