diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-01-26 19:05:46 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-01-26 19:05:46 +0100 |
commit | 830cf87697282cac254451079e21d2463cb86c92 (patch) | |
tree | 11fa84a5cae11b725b483a2407903088794f9fe8 | |
parent | 266fbb442ebefbec92d159204833848edf314fcf (diff) | |
download | nextcloud-server-830cf87697282cac254451079e21d2463cb86c92.tar.gz nextcloud-server-830cf87697282cac254451079e21d2463cb86c92.zip |
use the correct hooks to remove contact/calendars of remvoed users
-rw-r--r-- | apps/calendar/appinfo/app.php | 2 | ||||
-rw-r--r-- | apps/contacts/appinfo/app.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/calendar/appinfo/app.php b/apps/calendar/appinfo/app.php index 908a22856ba..c667a7c0849 100644 --- a/apps/calendar/appinfo/app.php +++ b/apps/calendar/appinfo/app.php @@ -6,7 +6,7 @@ if(version_compare(PHP_VERSION, '5.3.0', '>')){ OC::$CLASSPATH['OC_Calendar_Object'] = 'apps/calendar/lib/object.php'; OC::$CLASSPATH['OC_Calendar_Hooks'] = 'apps/calendar/lib/hooks.php'; OC::$CLASSPATH['OC_Connector_Sabre_CalDAV'] = 'apps/calendar/lib/connector_sabre.php'; - OC_HOOK::connect('OC_User', 'post_createUser', 'OC_Calendar_Hooks', 'deleteUser'); + OC_HOOK::connect('OC_User', 'post_deleteUser', 'OC_Calendar_Hooks', 'deleteUser'); OC_Util::addScript('calendar','loader'); OC_App::register( array( 'order' => 10, diff --git a/apps/contacts/appinfo/app.php b/apps/contacts/appinfo/app.php index df7e8cec6e0..a5b31006247 100644 --- a/apps/contacts/appinfo/app.php +++ b/apps/contacts/appinfo/app.php @@ -6,7 +6,7 @@ OC::$CLASSPATH['OC_Contacts_Addressbook'] = 'apps/contacts/lib/addressbook.php'; OC::$CLASSPATH['OC_Contacts_VCard'] = 'apps/contacts/lib/vcard.php'; OC::$CLASSPATH['OC_Contacts_Hooks'] = 'apps/contacts/lib/hooks.php'; OC::$CLASSPATH['OC_Connector_Sabre_CardDAV'] = 'apps/contacts/lib/connector_sabre.php'; -OC_HOOK::connect('OC_User', 'post_createUser', 'OC_Contacts_Hooks', 'deleteUser'); +OC_HOOK::connect('OC_User', 'post_deleteUser', 'OC_Contacts_Hooks', 'deleteUser'); OC_App::register( array( 'order' => 10, |