Finish export handle

modifié:         core/lib/Thelia/Controller/Admin/ImportExportController.php
	modifié:         core/lib/Thelia/Core/FileFormat/Archive/ArchiveBuilder/TarArchiveBuilder.php
	modifié:         core/lib/Thelia/Core/FileFormat/Archive/ArchiveBuilder/ZipArchiveBuilder.php
This commit is contained in:
Benjamin Perche
2014-07-15 10:19:52 +02:00
parent 4d5461bd08
commit 994eaed7e1
3 changed files with 6 additions and 10 deletions

View File

@@ -238,8 +238,6 @@ class TarArchiveBuilder extends AbstractArchiveBuilder
*/
public function buildArchiveResponse($filename)
{
$this->tar->setMetadata("Generated by Thelia v" . Thelia::THELIA_VERSION);
if (!is_file($this->cacheFile)) {
$this->throwFileNotFound($this->cacheFile);
}
@@ -262,7 +260,7 @@ class TarArchiveBuilder extends AbstractArchiveBuilder
200,
[
"Content-Type" => $this->getMimeType(),
"Content-Disposition" => $filename . "." . $this->getExtension(),
"Content-Disposition" => "attachment; filename=\"".$filename . "." . $this->getExtension() ."\"",
]
);
}

View File

@@ -332,7 +332,7 @@ class ZipArchiveBuilder extends AbstractArchiveBuilder
200,
[
"Content-Type" => $this->getMimeType(),
"Content-Disposition" => $filename . "." . $this->getExtension(),
"Content-Disposition" => "attachment; filename=\"". $filename . "." . $this->getExtension() ."\"",
]
);
}