From a3206b4e975082216d143c79edf379703317da20 Mon Sep 17 00:00:00 2001 From: Thomas Mueller Date: Fri, 28 Dec 2012 21:57:05 +0100 Subject: only show the max possible upload of 2GB on a 32 bit system. for a 64 bit system we have no such limitation refs #856 Conflicts: apps/files/templates/admin.php --- apps/files/admin.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'apps/files/admin.php') diff --git a/apps/files/admin.php b/apps/files/admin.php index 25645a4bcc9..f747f8645f6 100644 --- a/apps/files/admin.php +++ b/apps/files/admin.php @@ -57,6 +57,8 @@ $htaccessWritable=is_writable(OC::$SERVERROOT.'/.htaccess'); $tmpl = new OCP\Template( 'files', 'admin' ); $tmpl->assign( 'uploadChangable', $htaccessWorking and $htaccessWritable ); $tmpl->assign( 'uploadMaxFilesize', $maxUploadFilesize); +// max possible makes only sense on a 32 bit system +$tmpl->assign( 'displayMaxPossibleUploadSize', PHP_INT_SIZE===4); $tmpl->assign( 'maxPossibleUploadSize', OCP\Util::humanFileSize(PHP_INT_MAX)); $tmpl->assign( 'allowZipDownload', $allowZipDownload); $tmpl->assign( 'maxZipInputSize', $maxZipInputSize); -- cgit v1.2.3