]> source.dussan.org Git - nextcloud-server.git/commitdiff
use the correct hooks to remove contact/calendars of remvoed users
authorRobin Appelman <icewind@owncloud.com>
Thu, 26 Jan 2012 18:05:46 +0000 (19:05 +0100)
committerRobin Appelman <icewind@owncloud.com>
Thu, 26 Jan 2012 18:05:46 +0000 (19:05 +0100)
apps/calendar/appinfo/app.php
apps/contacts/appinfo/app.php

index 908a22856bae1ec49153cebba53399451c22b96e..c667a7c0849ded645a7462db0babd6c7ba852636 100644 (file)
@@ -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,
index df7e8cec6e02f5687352822e5832809556ba128d..a5b3100624728cb0d2749c9292eef06a735be751 100644 (file)
@@ -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,