mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-06-03 00:29:49 -04:00
Add alwaysVisible option to download button.
This commit is contained in:
parent
506c93340a
commit
3e617ae005
4 changed files with 24 additions and 11 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue