change storage space 'none' to 'Unlimited' and capitalize Default

This commit is contained in:
Jan-Christoph Borchardt 2012-12-14 23:22:55 +01:00
parent 4acb2f70e1
commit 4ee9d39422

View file

@ -33,7 +33,7 @@ foreach($accessibleusers as $i) {
$users[] = array(
"name" => $i,
"groups" => join( ", ", /*array_intersect(*/OC_Group::getUserGroups($i)/*, OC_SubAdmin::getSubAdminsGroups(OC_User::getUser()))*/),
'quota'=>OC_Preferences::getValue($i, 'files', 'quota', 'default'),
'quota'=>OC_Preferences::getValue($i, 'files', 'quota', 'Default'),
'subadmin'=>implode(', ', OC_SubAdmin::getSubAdminsGroups($i)));
}
@ -41,13 +41,13 @@ foreach( $accessiblegroups as $i ) {
// Do some more work here soon
$groups[] = array( "name" => $i );
}
$quotaPreset=OC_Appconfig::getValue('files', 'quota_preset', 'default,none,1 GB, 5 GB, 10 GB');
$quotaPreset=OC_Appconfig::getValue('files', 'quota_preset', 'Default, Unlimited, 1 GB, 5 GB, 10 GB');
$quotaPreset=explode(',', $quotaPreset);
foreach($quotaPreset as &$preset) {
$preset=trim($preset);
}
$defaultQuota=OC_Appconfig::getValue('files', 'default_quota', 'none');
$defaultQuota=OC_Appconfig::getValue('files', 'default_quota', 'Unlimited');
$tmpl = new OC_Template( "settings", "users", "user" );
$tmpl->assign( "users", $users );