diff options
author | Robin Appelman <icewind@owncloud.com> | 2013-01-30 19:18:32 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2013-01-30 19:19:19 +0100 |
commit | 95352fbc1568e0c49be25461a07d53b3d5ad3b45 (patch) | |
tree | 341e04a0224d78cbe71ff44882458bd0060ada9e /apps/files/index.php | |
parent | af3b0e30ed2dd66212c3fc25bb5c406b77fa9e5d (diff) | |
download | nextcloud-server-95352fbc1568e0c49be25461a07d53b3d5ad3b45.tar.gz nextcloud-server-95352fbc1568e0c49be25461a07d53b3d5ad3b45.zip |
Files: Dont get maxUploadSize if the filecache needs to be upgraded
Diffstat (limited to 'apps/files/index.php')
-rw-r--r-- | apps/files/index.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/files/index.php b/apps/files/index.php index 894758d38f6..d2cd76a7106 100644 --- a/apps/files/index.php +++ b/apps/files/index.php @@ -98,8 +98,6 @@ $breadcrumbNav = new OCP\Template('files', 'part.breadcrumb', ''); $breadcrumbNav->assign('breadcrumb', $breadcrumb, false); $breadcrumbNav->assign('baseURL', OCP\Util::linkTo('files', 'index.php') . '?dir=', false); -$maxUploadFilesize=OCP\Util::maxUploadFilesize($dir); - $permissions = OCP\PERMISSION_READ; if (\OC\Files\Filesystem::isCreatable($dir . '/')) { $permissions |= OCP\PERMISSION_CREATE; @@ -121,7 +119,8 @@ if ($needUpgrade) { } else { // information about storage capacities $storageInfo=OC_Helper::getStorageInfo(); - + $maxUploadFilesize=OCP\Util::maxUploadFilesize($dir); + OCP\Util::addscript('files', 'fileactions'); OCP\Util::addscript('files', 'files'); OCP\Util::addscript('files', 'keyboardshortcuts'); |