diff options
Diffstat (limited to 'cron.php')
-rw-r--r-- | cron.php | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -56,10 +56,10 @@ try { // load all apps to get all api routes properly setup OC_App::loadApps(); - \OC::$session->close(); + \OC::$server->getSession()->close(); // initialize a dummy memory session - \OC::$session = new \OC\Session\Memory(''); + \OC::$server->setSession(new \OC\Session\Memory('')); $logger = \OC_Log::$object; |