summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing
diff options
context:
space:
mode:
authorMichael Gapczynski <GapczynskiM@gmail.com>2011-08-18 19:44:00 -0400
committerMichael Gapczynski <GapczynskiM@gmail.com>2011-08-18 19:44:00 -0400
commita57d4726bc6d7898e82897379a5effb8a28eadbf (patch)
tree7bece6e0df0ddff88007e9cf5cc9ff6d6b8b8650 /apps/files_sharing
parentd1aebcddf26c155c4efa580d19bb99c0e51ecbba (diff)
downloadnextcloud-server-a57d4726bc6d7898e82897379a5effb8a28eadbf.tar.gz
nextcloud-server-a57d4726bc6d7898e82897379a5effb8a28eadbf.zip
Remove some scripts, now you can actually download the files in a public link folder
Diffstat (limited to 'apps/files_sharing')
-rw-r--r--apps/files_sharing/get.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/files_sharing/get.php b/apps/files_sharing/get.php
index a828989a8a5..e50a319ace4 100644
--- a/apps/files_sharing/get.php
+++ b/apps/files_sharing/get.php
@@ -40,17 +40,15 @@ if ($source !== false) {
}
// Make breadcrumb
$breadcrumb = array();
- $pathtohere = "/";
+ $pathtohere = "";
foreach (explode("/", $subPath) as $i) {
if ($i != "") {
- $pathtohere .= "$i/";
+ $pathtohere .= "/$i";
$breadcrumb[] = array("dir" => $pathtohere, "name" => $i);
}
}
// Load the files we need
OC_Util::addStyle("files", "files");
- OC_Util::addScript("files", "files");
- OC_Util::addScript("files", "filelist");
$breadcrumbNav = new OC_Template("files", "part.breadcrumb", "");
$breadcrumbNav->assign("breadcrumb", $breadcrumb);
$breadcrumbNav->assign("baseURL", OC_Helper::linkTo("files_sharing", "get.php")."?token=".$token."&path=");