diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2013-09-18 13:15:38 +0200 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2013-09-18 13:15:38 +0200 |
commit | 534933ee9bf6837fc75a389e4ed3aad4ffe1ab0f (patch) | |
tree | cd656d4a04d788d9e75b69e78606d50dbccc66da /lib/base.php | |
parent | 1a130627012bb17ed9edc4583a4d8250ff4e2882 (diff) | |
download | nextcloud-server-534933ee9bf6837fc75a389e4ed3aad4ffe1ab0f.tar.gz nextcloud-server-534933ee9bf6837fc75a389e4ed3aad4ffe1ab0f.zip |
Use new emitter system
Diffstat (limited to 'lib/base.php')
-rw-r--r-- | lib/base.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/base.php b/lib/base.php index 520be11bc52..ce307b2bdd2 100644 --- a/lib/base.php +++ b/lib/base.php @@ -568,7 +568,9 @@ class OC { } catch (Exception $e) { } - OC_Hook::connect('OC_User', 'post_login', 'OC\Cache\File', 'loginListener'); + // NOTE: This will be replaced to use OCP + $userSession = \OC_User::getUserSession(); + $userSession->listen('postLogin', array('OC\Cache\File', 'loginListener')) } } |