summaryrefslogtreecommitdiffstats
path: root/lib/base.php
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2013-09-18 13:15:38 +0200
committerThomas Tanghus <thomas@tanghus.net>2013-09-18 13:15:38 +0200
commit534933ee9bf6837fc75a389e4ed3aad4ffe1ab0f (patch)
treecd656d4a04d788d9e75b69e78606d50dbccc66da /lib/base.php
parent1a130627012bb17ed9edc4583a4d8250ff4e2882 (diff)
downloadnextcloud-server-534933ee9bf6837fc75a389e4ed3aad4ffe1ab0f.tar.gz
nextcloud-server-534933ee9bf6837fc75a389e4ed3aad4ffe1ab0f.zip
Use new emitter system
Diffstat (limited to 'lib/base.php')
-rw-r--r--lib/base.php4
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'))
}
}