From 1f35c94242b1d533f94ab911aecf0f05facebe43 Mon Sep 17 00:00:00 2001 From: Michael Gapczynski Date: Mon, 16 Jan 2012 19:52:04 -0500 Subject: [PATCH] Make media app listen for post_delete instead of delete --- apps/media/lib_media.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/media/lib_media.php b/apps/media/lib_media.php index 485d616e1aa..0ade0e593dc 100644 --- a/apps/media/lib_media.php +++ b/apps/media/lib_media.php @@ -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'); -- 2.39.5