Updated file deletion to remove cc_files rows properly when deleting from the Library
This commit is contained in:
parent
365184c2b1
commit
a84e0761ca
2 changed files with 6 additions and 7 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue