diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2014-05-02 15:51:41 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2014-05-02 15:53:46 +0200 |
commit | 6e75b37d04b5daf00f85eed925fd5b0203d09cb5 (patch) | |
tree | fa4ad1f2e1922d6c54ae9bfd56efb1cbc42b6b95 /apps/files_sharing/public.php | |
parent | 899c7c04436eb5bd228e5bfa7166be24a746d774 (diff) | |
download | nextcloud-server-6e75b37d04b5daf00f85eed925fd5b0203d09cb5.tar.gz nextcloud-server-6e75b37d04b5daf00f85eed925fd5b0203d09cb5.zip |
disable download button if zip download is disabled
Diffstat (limited to 'apps/files_sharing/public.php')
-rw-r--r-- | apps/files_sharing/public.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files_sharing/public.php b/apps/files_sharing/public.php index 3abcbf291ff..e17ffc48036 100644 --- a/apps/files_sharing/public.php +++ b/apps/files_sharing/public.php @@ -165,12 +165,13 @@ if (isset($path)) { $folder->assign('disableSharing', true); $folder->assign('trash', false); $tmpl->assign('folder', $folder->fetchPage()); - $maxInputFileSize = OCP\Config::getSystemValue('maxZipInputSize', OCP\Util::computerFileSize('800 MB')); $allowZip = OCP\Config::getSystemValue('allowZipDownload', true); $tmpl->assign('allowZipDownload', intval($allowZip)); + $tmpl->assign('showDownloadButton', intval($allowZip)); $tmpl->assign('downloadURL', OCP\Util::linkToPublic('files') . $urlLinkIdentifiers . '&download&path=' . urlencode($getPath)); } else { + $tmpl->assign('showDownloadButton', true); $tmpl->assign('dir', $dir); // Show file preview if viewer is available |