diff options
author | e-alfred <e-alfred@users.noreply.github.com> | 2019-04-30 16:26:55 +0300 |
---|---|---|
committer | Loïc Blot <nerzhul@users.noreply.github.com> | 2019-04-30 16:26:55 +0300 |
commit | 1e97aa0fc0390834e1620ad477b72c4d819033a0 (patch) | |
tree | fd5922ffca4411b54bf5bd97ea6e04d66c970dd3 /lib | |
parent | cc8677d181b0d0ed8036a17f87c4486da5967105 (diff) |
Fix deprecated API (#71)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/AppInfo/Application.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AppInfo/Application.php b/lib/AppInfo/Application.php index 6d666cb..c090c27 100644 --- a/lib/AppInfo/Application.php +++ b/lib/AppInfo/Application.php @@ -33,7 +33,7 @@ class Application extends App { * Core */ $container->registerService('UserId', function(IContainer $c) { - return \OCP\User::getUser(); + return \OC::$server->getUserSession()->getUser()->getUID(); }); $container->registerService('Config', function($c) { |