]> source.dussan.org Git - nextcloud-server.git/commitdiff
Files: Dont get maxUploadSize if the filecache needs to be upgraded
authorRobin Appelman <icewind@owncloud.com>
Wed, 30 Jan 2013 18:18:32 +0000 (19:18 +0100)
committerRobin Appelman <icewind@owncloud.com>
Wed, 30 Jan 2013 18:19:19 +0000 (19:19 +0100)
apps/files/index.php

index 894758d38f6558ed3352fb86e0b31a094f78f1e2..d2cd76a71066516b25c11fa9ef186fd2108ee089 100644 (file)
@@ -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');