summaryrefslogtreecommitdiffstats
path: root/lib/private/server.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2014-11-27 14:38:38 +0100
committerLukas Reschke <lukas@owncloud.com>2014-11-27 14:38:38 +0100
commitfef32e63ddd706a13c48111dd5b0792703becc78 (patch)
tree0e8733b90dd6bada41f43f4ea76f5739eb4546f7 /lib/private/server.php
parentd197f434757c9c21d813584122329b774487f15e (diff)
downloadnextcloud-server-fef32e63ddd706a13c48111dd5b0792703becc78.tar.gz
nextcloud-server-fef32e63ddd706a13c48111dd5b0792703becc78.zip
Remove redundant code
Diffstat (limited to 'lib/private/server.php')
-rw-r--r--lib/private/server.php6
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;
}