Skip to content
Snippets Groups Projects
Commit a143e77e authored by Thomas Müller's avatar Thomas Müller
Browse files

removing unused parameter $parameters

fixing undefined variable $useDir
parent 4a345fd9
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,7 @@
class OC_OCS_Cloud {
public static function getSystemWebApps($parameters) {
public static function getSystemWebApps() {
OC_Util::checkLoggedIn();
$apps = OC_App::getEnabledApps();
$values = array();
......@@ -45,7 +45,7 @@ class OC_OCS_Cloud {
if(OC_User::userExists($parameters['user'])) {
// calculate the disc space
$userDir = '/'.$parameters['user'].'/files';
OC_Filesystem::init($useDir);
OC_Filesystem::init($userDir);
$rootInfo = OC_FileCache::get('');
$sharedInfo = OC_FileCache::get('/Shared');
$used = $rootInfo['size'] - $sharedInfo['size'];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment