summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/files/index.php5
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');