Add alwaysVisible option to download button.

This commit is contained in:
Lars Jung 2014-06-16 02:31:50 +02:00
parent 506c93340a
commit 3e617ae005
4 changed files with 24 additions and 11 deletions

View file

@ -23,7 +23,7 @@ class Archive {
$this->add_hrefs($urls);
if (count($this->dirs) === 0 && count($this->files) === 0) {
return 500;
$this->add_dir(CURRENT_PATH, "/");
}
if ($type === "php-tar") {
@ -145,6 +145,10 @@ class Archive {
foreach ($urls as $href) {
if (trim($href) === "") {
continue;
}
$d = normalize_path(dirname($href), true);
$n = basename($href);