Make media app listen for post_delete instead of delete

This commit is contained in:
Michael Gapczynski 2012-01-16 19:52:04 -05:00
parent 941f199caf
commit 1f35c94242

View file

@ -28,7 +28,7 @@ OC_Hook::connect('OC_User','post_login','OC_MEDIA','loginListener');
OC_Hook::connect('OC_Filesystem','post_write','OC_MEDIA','updateFile');
//listen for file deletions to clean the database if a song is deleted
OC_Hook::connect('OC_Filesystem','delete','OC_MEDIA','deleteFile');
OC_Hook::connect('OC_Filesystem','post_delete','OC_MEDIA','deleteFile');
//list for file moves to update the database
OC_Hook::connect('OC_Filesystem','post_rename','OC_MEDIA','moveFile');