From: Michael Gapczynski Date: Tue, 17 Jan 2012 00:52:04 +0000 (-0500) Subject: Make media app listen for post_delete instead of delete X-Git-Tag: v3.0~38^2~4 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1f35c94242b1d533f94ab911aecf0f05facebe43;p=nextcloud-server.git Make media app listen for post_delete instead of delete --- 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');