mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-25 12:34:47 -04:00
Correct root dir in php_tar.
This commit is contained in:
parent
4fac5baedd
commit
adce6f19c4
2 changed files with 5 additions and 5 deletions
|
@ -73,10 +73,10 @@ modulejs.define('ext/download', ['_', '$', 'core/settings', 'core/resource', 'co
|
||||||
|
|
||||||
var type = settings.type,
|
var type = settings.type,
|
||||||
extension = type === 'shell-zip' ? 'zip' : 'tar',
|
extension = type === 'shell-zip' ? 'zip' : 'tar',
|
||||||
query = '?action=passArchive'
|
query = '?action=passArchive' +
|
||||||
+ '&as=' + encodeURIComponent((settings.packageName || location.getItem().label) + '.' + extension)
|
'&as=' + encodeURIComponent((settings.packageName || location.getItem().label) + '.' + extension) +
|
||||||
+ '&type=' + type
|
'&type=' + type +
|
||||||
+ '&hrefs=' + encodeURIComponent(selectedHrefsStr),
|
'&hrefs=' + encodeURIComponent(selectedHrefsStr),
|
||||||
$iframe = $('<iframe src="' + query + '" style="display: none;" />');
|
$iframe = $('<iframe src="' + query + '" style="display: none;" />');
|
||||||
|
|
||||||
$iframe.appendTo('body');
|
$iframe.appendTo('body');
|
||||||
|
|
|
@ -88,7 +88,7 @@ class Archive {
|
||||||
|
|
||||||
// POSIX.1-1988 UStar implementation, by @TvdW
|
// POSIX.1-1988 UStar implementation, by @TvdW
|
||||||
|
|
||||||
$root_path = $this->app->get_root_abs_path();
|
$root_path = $this->app->get_abs_path();
|
||||||
|
|
||||||
// Build a list of filesizes so we can predict the total size
|
// Build a list of filesizes so we can predict the total size
|
||||||
$filesizes = array();
|
$filesizes = array();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue