diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2014-08-05 18:30:38 +0400 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2014-08-05 18:30:38 +0400 |
commit | 18754d901ff67715e46471d64edf7e56bf6e1e39 (patch) | |
tree | fcd6d520452d5ff932b6db82d3fda9a42e171f00 /user_migrate | |
parent | 6e069a9fb57c971cc0b7c437afadf24c7dfe1ed0 (diff) | |
parent | 60cb4b7307fbbd65e4db1f66efc2bc3c1ae7c37d (diff) |
Merge pull request #1856 from owncloud/kill_oc_session
use accessor to get session
Diffstat (limited to 'user_migrate')
-rw-r--r-- | user_migrate/ajax/export.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/user_migrate/ajax/export.php b/user_migrate/ajax/export.php index eb198c4e8..28ecea375 100644 --- a/user_migrate/ajax/export.php +++ b/user_migrate/ajax/export.php @@ -42,13 +42,13 @@ if( $_GET['operation']=='create' ) { die(); } else { // Save path in session - OC::$session->set('ocuserexportpath', $response->data); + \OC::$server->getSession()->set('ocuserexportpath', $response->data); } OCP\JSON::success(); die(); } else if( $_GET['operation']=='download' ) { // Download the export - $path = OC::$session->exists('ocuserexportpath') ? OC::$session->get('ocuserexportpath') : false; + $path = \OC::$server->getSession()->exists('ocuserexportpath') ? \OC::$server->getSession()->get('ocuserexportpath') : false; if( !$path ) { OCP\JSON::error(); exit; @@ -59,5 +59,5 @@ if( $_GET['operation']=='create' ) { @ob_end_clean(); readfile($path); unlink( $path ); - OC::$session->remove('ocuserexportpath'); + \OC::$server->getSession()->remove('ocuserexportpath'); } |