]> source.dussan.org Git - nextcloud-server.git/commitdiff
Make media app listen for post_delete instead of delete
authorMichael Gapczynski <GapczynskiM@gmail.com>
Tue, 17 Jan 2012 00:52:04 +0000 (19:52 -0500)
committerMichael Gapczynski <GapczynskiM@gmail.com>
Tue, 17 Jan 2012 00:52:04 +0000 (19:52 -0500)
apps/media/lib_media.php

index 485d616e1aa90cad39ce5f39937da3f59b03f6c5..0ade0e593dc2216ddc8b2b9e23837795050d74d8 100644 (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');