Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/apps.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2014-07-17 14:09:30 +0400
committerJörn Friedrich Dreyer <jfd@butonic.de>2014-07-17 14:09:30 +0400
commit60cb4b7307fbbd65e4db1f66efc2bc3c1ae7c37d (patch)
treec6de253bdde4bd6c37cce037ddf9d152799325c1 /user_migrate
parent787c4b38add380aac898adaaa768d6cfa2ecb6ed (diff)
use accessor to get session
Diffstat (limited to 'user_migrate')
-rw-r--r--user_migrate/ajax/export.php6
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');
}