summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2011-09-23 09:46:13 +0200
committerFlorian Pritz <bluewind@xinu.at>2011-09-24 18:41:54 +0200
commitd928cd363689149e9f26b76d6671a4b40a8cc917 (patch)
tree65d6fec607e6421bf814afe039f3064473154848 /apps
parent71706282f708da237fe259da5b64c0bcd0c0015f (diff)
downloadnextcloud-server-d928cd363689149e9f26b76d6671a4b40a8cc917.tar.gz
nextcloud-server-d928cd363689149e9f26b76d6671a4b40a8cc917.zip
files: hide non functioning code when called from a/f_s/get.php
The checkboxes don't work because files.js is missing. Adding it leads to the problem that it relies on files/ajax and most of the code only works for logged in users. The actions div contains undefined variables and doesn't work either. Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/get.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files_sharing/get.php b/apps/files_sharing/get.php
index a1b6c316cd5..33918bf9e7d 100644
--- a/apps/files_sharing/get.php
+++ b/apps/files_sharing/get.php
@@ -56,9 +56,11 @@ if ($source !== false) {
$list->assign("files", $files);
$list->assign("baseURL", OC_Helper::linkTo("files_sharing", "get.php")."?token=".$token."&path=");
$list->assign("downloadURL", OC_Helper::linkTo("files_sharing", "get.php")."?token=".$token."&path=");
+ $list->assign("readonly", true);
$tmpl = new OC_Template("files", "index", "user");
$tmpl->assign("fileList", $list->fetchPage());
$tmpl->assign("breadcrumb", $breadcrumbNav->fetchPage());
+ $tmpl->assign("readonly", true);
$tmpl->printPage();
} else {
//get time mimetype and set the headers