diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2014-02-18 15:07:03 +0100 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2014-03-25 17:47:24 +0100 |
commit | b6026625781b2fda8ee1b23c3984be4a064adccc (patch) | |
tree | f935764c76d28dfd8e6f874ec9156485316ae384 /lib/base.php | |
parent | 8b6d1d3bf2b31c13417bbac0ede6bc319877bf61 (diff) | |
download | nextcloud-server-b6026625781b2fda8ee1b23c3984be4a064adccc.tar.gz nextcloud-server-b6026625781b2fda8ee1b23c3984be4a064adccc.zip |
add a "helper" and a "hooks" class. Move constants needed by multiple classes
to a "constants" class
Diffstat (limited to 'lib/base.php')
-rw-r--r-- | lib/base.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/base.php b/lib/base.php index 2515b9657cb..b3f6776e6df 100644 --- a/lib/base.php +++ b/lib/base.php @@ -659,10 +659,10 @@ class OC { */ public static function registerShareHooks() { if (\OC_Config::getValue('installed')) { - OC_Hook::connect('OC_User', 'post_deleteUser', 'OCP\Share', 'post_deleteUser'); - OC_Hook::connect('OC_User', 'post_addToGroup', 'OCP\Share', 'post_addToGroup'); - OC_Hook::connect('OC_User', 'post_removeFromGroup', 'OCP\Share', 'post_removeFromGroup'); - OC_Hook::connect('OC_User', 'post_deleteGroup', 'OCP\Share', 'post_deleteGroup'); + OC_Hook::connect('OC_User', 'post_deleteUser', 'OC\Share\Hooks', 'post_deleteUser'); + OC_Hook::connect('OC_User', 'post_addToGroup', 'OC\Share\Hooks', 'post_addToGroup'); + OC_Hook::connect('OC_User', 'post_removeFromGroup', 'OC\Share\Hooks', 'post_removeFromGroup'); + OC_Hook::connect('OC_User', 'post_deleteGroup', 'OC\Share\Hooks', 'post_deleteGroup'); } } |