diff options
author | Lukas Reschke <lukas@owncloud.com> | 2014-11-27 14:38:38 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2014-11-27 14:38:38 +0100 |
commit | fef32e63ddd706a13c48111dd5b0792703becc78 (patch) | |
tree | 0e8733b90dd6bada41f43f4ea76f5739eb4546f7 /lib/private/server.php | |
parent | d197f434757c9c21d813584122329b774487f15e (diff) | |
download | nextcloud-server-fef32e63ddd706a13c48111dd5b0792703becc78.tar.gz nextcloud-server-fef32e63ddd706a13c48111dd5b0792703becc78.zip |
Remove redundant code
Diffstat (limited to 'lib/private/server.php')
-rw-r--r-- | lib/private/server.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/server.php b/lib/private/server.php index e28e8362796..328a2e05cae 100644 --- a/lib/private/server.php +++ b/lib/private/server.php @@ -33,15 +33,15 @@ class Server extends SimpleContainer implements IServerContainer { $this->registerService('ContactsManager', function ($c) { return new ContactsManager(); }); - $this->registerService('Request', function ($c) { + $this->registerService('Request', function (Server $c) { if (isset($c['urlParams'])) { $urlParams = $c['urlParams']; } else { $urlParams = array(); } - if (\OC::$server->getSession()->exists('requesttoken')) { - $requestToken = \OC::$server->getSession()->get('requesttoken'); + if ($c->getSession()->exists('requesttoken')) { + $requestToken = $c->getSession()->get('requesttoken'); } else { $requestToken = false; } |