removing unused parameter $parameters

fixing undefined variable $useDir
This commit is contained in:
Thomas Mueller 2013-01-06 23:29:43 +01:00
parent 4a345fd911
commit a143e77ee4
1 changed files with 2 additions and 2 deletions

View File

@ -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'];