Fix api.File.delete to actually delete the file
authorOlaf Buddenhagen <antrik@digitalcourage.de>
Wed, 6 May 2015 06:31:44 +0000 (08:31 +0200)
committerOlaf Buddenhagen <antrik@digitalcourage.de>
Wed, 6 May 2015 06:39:07 +0000 (08:39 +0200)
commitd263973800e416acb2a3f17f63940f680443c287
tree2c8ce82fa7122366bacc4279166179972c739097
parent278a1224d20dd493af47dc38946f6e85bbb55970
Fix api.File.delete to actually delete the file

The previous implementation used entityFile and File DAOs to remove the
DB entries, but didn't remove the actual file.

Use CRM_Core_BAO_File::deleteEntityFile() instead -- which is not only
much simpler, but also appears to actually Do The Right Thing (TM)...
api/v3/File.php