diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2014-11-26 13:16:22 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2014-11-26 15:32:47 +0100 |
commit | 5097d4dc05b6591f656b17e769a78ddaa7fc0c6d (patch) | |
tree | abf320c783a574c73e29cdee743f0bfa1d864447 /lib/base.php | |
parent | a2457b5fb9f1ef9fda82afc4cf7dc712d14488c9 (diff) | |
download | nextcloud-server-5097d4dc05b6591f656b17e769a78ddaa7fc0c6d.tar.gz nextcloud-server-5097d4dc05b6591f656b17e769a78ddaa7fc0c6d.zip |
remove deprecated \OC:$session
Diffstat (limited to 'lib/base.php')
-rw-r--r-- | lib/base.php | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/lib/base.php b/lib/base.php index 82c0c7aa6d0..5c33be351a4 100644 --- a/lib/base.php +++ b/lib/base.php @@ -66,17 +66,11 @@ class OC { public static $REQUESTEDAPP = ''; /** - * check if owncloud runs in cli mode + * check if ownCloud runs in cli mode */ public static $CLI = false; /** - * @deprecated use \OC::$server->getSession() instead - * @var \OC\Session\Session - */ - public static $session = null; - - /** * @var \OC\Autoloader $loader */ public static $loader = null; @@ -531,9 +525,7 @@ class OC { \OC::$server->getEventLogger()->start('init_session', 'Initialize session'); OC_App::loadApps(array('session')); - if (self::$CLI) { - self::$session = new \OC\Session\Memory(''); - } else { + if (!self::$CLI) { self::initSession(); } \OC::$server->getEventLogger()->end('init_session'); |