From 95352fbc1568e0c49be25461a07d53b3d5ad3b45 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Wed, 30 Jan 2013 19:18:32 +0100 Subject: [PATCH] Files: Dont get maxUploadSize if the filecache needs to be upgraded --- apps/files/index.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/apps/files/index.php b/apps/files/index.php index 894758d38f..d2cd76a710 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');