Remove some scripts, now you can actually download the files in a public link folder
This commit is contained in:
parent
d1aebcddf2
commit
a57d4726bc
|
@ -40,17 +40,15 @@ if ($source !== false) {
|
||||||
}
|
}
|
||||||
// Make breadcrumb
|
// Make breadcrumb
|
||||||
$breadcrumb = array();
|
$breadcrumb = array();
|
||||||
$pathtohere = "/";
|
$pathtohere = "";
|
||||||
foreach (explode("/", $subPath) as $i) {
|
foreach (explode("/", $subPath) as $i) {
|
||||||
if ($i != "") {
|
if ($i != "") {
|
||||||
$pathtohere .= "$i/";
|
$pathtohere .= "/$i";
|
||||||
$breadcrumb[] = array("dir" => $pathtohere, "name" => $i);
|
$breadcrumb[] = array("dir" => $pathtohere, "name" => $i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Load the files we need
|
// Load the files we need
|
||||||
OC_Util::addStyle("files", "files");
|
OC_Util::addStyle("files", "files");
|
||||||
OC_Util::addScript("files", "files");
|
|
||||||
OC_Util::addScript("files", "filelist");
|
|
||||||
$breadcrumbNav = new OC_Template("files", "part.breadcrumb", "");
|
$breadcrumbNav = new OC_Template("files", "part.breadcrumb", "");
|
||||||
$breadcrumbNav->assign("breadcrumb", $breadcrumb);
|
$breadcrumbNav->assign("breadcrumb", $breadcrumb);
|
||||||
$breadcrumbNav->assign("baseURL", OC_Helper::linkTo("files_sharing", "get.php")."?token=".$token."&path=");
|
$breadcrumbNav->assign("baseURL", OC_Helper::linkTo("files_sharing", "get.php")."?token=".$token."&path=");
|
||||||
|
|
Loading…
Reference in New Issue