mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
typos, indentation and remove of unused code
This commit is contained in:
parent
05dc265ea2
commit
535302b25e
3 changed files with 7 additions and 7 deletions
|
|
@ -976,7 +976,7 @@ window.FileList = {
|
|||
OC.dialogs.alert(t('files', 'Error moving file'), t('files', 'Error'));
|
||||
}
|
||||
$td.css('background-image', oldBackgroundImage);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
},
|
||||
|
|
|
|||
|
|
@ -18,12 +18,12 @@ class Helper
|
|||
$storageInfo = \OC_Helper::getStorageInfo($dir);
|
||||
|
||||
$l = new \OC_L10N('files');
|
||||
$maxUploadFilesize = \OCP\Util::maxUploadFilesize($dir, $storageInfo['free']);
|
||||
$maxHumanFilesize = \OCP\Util::humanFileSize($maxUploadFilesize);
|
||||
$maxHumanFilesize = $l->t('Upload (max. %s)', array($maxHumanFilesize));
|
||||
$maxUploadFileSize = \OCP\Util::maxUploadFilesize($dir, $storageInfo['free']);
|
||||
$maxHumanFileSize = \OCP\Util::humanFileSize($maxUploadFileSize);
|
||||
$maxHumanFileSize = $l->t('Upload (max. %s)', array($maxHumanFileSize));
|
||||
|
||||
return array('uploadMaxFilesize' => $maxUploadFilesize,
|
||||
'maxHumanFilesize' => $maxHumanFilesize,
|
||||
return array('uploadMaxFilesize' => $maxUploadFileSize,
|
||||
'maxHumanFilesize' => $maxHumanFileSize,
|
||||
'freeSpace' => $storageInfo['free'],
|
||||
'usedSpacePercent' => (int)$storageInfo['relative']);
|
||||
}
|
||||
|
|
@ -36,7 +36,6 @@ class Helper
|
|||
*/
|
||||
public static function determineIcon($file) {
|
||||
if($file['type'] === 'dir') {
|
||||
$dir = $file['directory'];
|
||||
$icon = \OC_Helper::mimetypeIcon('dir');
|
||||
$absPath = $file->getPath();
|
||||
$mount = \OC\Files\Filesystem::getMountManager()->find($absPath);
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
<?php /** @var $l OC_L10N */ ?>
|
||||
<div id="controls">
|
||||
<div class="actions creatable hidden">
|
||||
<?php if(!isset($_['dirToken'])):?>
|
||||
|
|
|
|||
Loading…
Reference in a new issue