summaryrefslogtreecommitdiffstats
path: root/apps/files/ajax/getstoragestats.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files/ajax/getstoragestats.php')
-rw-r--r--apps/files/ajax/getstoragestats.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/ajax/getstoragestats.php b/apps/files/ajax/getstoragestats.php
index dd8af39bada..4ab5b9a779c 100644
--- a/apps/files/ajax/getstoragestats.php
+++ b/apps/files/ajax/getstoragestats.php
@@ -7,7 +7,7 @@ if (isset($_GET['dir'])) {
}
OCP\JSON::checkLoggedIn();
-\OC::$session->close();
+\OC::$server->getSession()->close();
// send back json
OCP\JSON::success(array('data' => \OCA\Files\Helper::buildFileStorageStatistics($dir)));