mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-08-09 14:56:32 +02:00
Fix default folder download (still strange for shell-tar).
This commit is contained in:
@@ -23,7 +23,11 @@ class Archive {
|
|||||||
$this->add_hrefs($urls);
|
$this->add_hrefs($urls);
|
||||||
|
|
||||||
if (count($this->dirs) === 0 && count($this->files) === 0) {
|
if (count($this->dirs) === 0 && count($this->files) === 0) {
|
||||||
|
if ($type === "php-tar") {
|
||||||
$this->add_dir(CURRENT_PATH, "/");
|
$this->add_dir(CURRENT_PATH, "/");
|
||||||
|
} else {
|
||||||
|
$this->add_dir(CURRENT_PATH, ".");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($type === "php-tar") {
|
if ($type === "php-tar") {
|
||||||
|
Reference in New Issue
Block a user