Fix default folder download (still strange for shell-tar).
This commit is contained in:
parent
b40ae3480f
commit
49d0c968b9
@ -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) {
|
||||||
$this->add_dir(CURRENT_PATH, "/");
|
if ($type === "php-tar") {
|
||||||
|
$this->add_dir(CURRENT_PATH, "/");
|
||||||
|
} else {
|
||||||
|
$this->add_dir(CURRENT_PATH, ".");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($type === "php-tar") {
|
if ($type === "php-tar") {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user