f551917a3c
maintain deprecated \OC::$session when getting or setting the session via the server container or UserSession restore order os OC::$session and OC::$CLI remove unneded initialization of dummy session write back session when $useCustomSession is true log warning when deprecated app is used
13 lines
244 B
PHP
13 lines
244 B
PHP
<?php
|
|
|
|
$dir = '/';
|
|
|
|
if (isset($_GET['dir'])) {
|
|
$dir = $_GET['dir'];
|
|
}
|
|
|
|
OCP\JSON::checkLoggedIn();
|
|
\OC::$server->getSession()->close();
|
|
|
|
// send back json
|
|
OCP\JSON::success(array('data' => \OCA\Files\Helper::buildFileStorageStatistics($dir)));
|