[Pkg-owncloud-commits] [owncloud] 19/66: fix undefined index
David Prévot
taffit at moszumanska.debian.org
Fri Apr 18 22:49:43 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag v5.0.15
in repository owncloud.
commit 102d5ab0843e4082e16f240f805e15c416ea40b3
Author: Jörn Friedrich Dreyer <jfd at butonic.de>
Date: Thu Feb 13 16:52:49 2014 +0100
fix undefined index
---
apps/files/index.php | 1 +
apps/files_sharing/public.php | 2 ++
2 files changed, 3 insertions(+)
diff --git a/apps/files/index.php b/apps/files/index.php
index 2d1ae26..4ef24b2 100644
--- a/apps/files/index.php
+++ b/apps/files/index.php
@@ -144,5 +144,6 @@ if ($needUpgrade) {
$tmpl->assign('usedSpacePercent', (int)$storageInfo['relative']);
$tmpl->assign('isPublic', false);
$tmpl->assign('publicUploadEnabled', $publicUploadEnabled);
+ $tmpl->assign('disableSharing', false);
$tmpl->printPage();
}
diff --git a/apps/files_sharing/public.php b/apps/files_sharing/public.php
index 848f423..d569286 100644
--- a/apps/files_sharing/public.php
+++ b/apps/files_sharing/public.php
@@ -206,6 +206,8 @@ if (isset($path)) {
$folder->assign('uploadMaxHumanFilesize', OCP\Util::humanFileSize($maxUploadFilesize));
$folder->assign('allowZipDownload', intval(OCP\Config::getSystemValue('allowZipDownload', true)));
$folder->assign('usedSpacePercent', 0);
+ $folder->assign('disableSharing', true);
+ $folder->assign('trash', false);
$tmpl->assign('folder', $folder->fetchPage());
$allowZip = OCP\Config::getSystemValue('allowZipDownload', true)
&& $totalSize <= OCP\Config::getSystemValue('maxZipInputSize', OCP\Util::computerFileSize('800 MB'));
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list