Correct root dir in php_tar.

This commit is contained in:
Lars Jung 2013-07-18 21:07:56 +02:00
parent 4fac5baedd
commit adce6f19c4
2 changed files with 5 additions and 5 deletions

View file

@ -73,10 +73,10 @@ modulejs.define('ext/download', ['_', '$', 'core/settings', 'core/resource', 'co
var type = settings.type,
extension = type === 'shell-zip' ? 'zip' : 'tar',
query = '?action=passArchive'
+ '&as=' + encodeURIComponent((settings.packageName || location.getItem().label) + '.' + extension)
+ '&type=' + type
+ '&hrefs=' + encodeURIComponent(selectedHrefsStr),
query = '?action=passArchive' +
'&as=' + encodeURIComponent((settings.packageName || location.getItem().label) + '.' + extension) +
'&type=' + type +
'&hrefs=' + encodeURIComponent(selectedHrefsStr),
$iframe = $('<iframe src="' + query + '" style="display: none;" />');
$iframe.appendTo('body');

View file

@ -88,7 +88,7 @@ class Archive {
// 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
$filesizes = array();