Updated file deletion to remove cc_files rows properly when deleting from the Library

This commit is contained in:
Duncan Sommerville 2014-10-08 18:01:06 -04:00
parent 365184c2b1
commit a84e0761ca
2 changed files with 6 additions and 7 deletions

View file

@ -277,7 +277,6 @@ class Rest_MediaController extends Zend_Rest_Controller
if ($storedFile->existsOnDisk()) {
$storedFile->delete(); //TODO: This checks your session permissions... Make it work without a session?
}
$file->delete();
$this->getResponse()
->setHttpResponseCode(204);
} else {