mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-08-12 16:24:03 +02:00
Correct root dir in php_tar.
This commit is contained in:
@@ -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();
|
||||||
|
Reference in New Issue
Block a user