Commit 31e745a9 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

Merge branch '546-sprachdatei-zips-werden-im-falschen-ordner-gespeichert' into 'development'

Resolve "Sprachdatei Zips werden im falschen Ordner gespeichert"

Closes #546

See merge request !971
parents 56ce437a d8b433d8
......@@ -321,12 +321,12 @@ class LanguageController extends Controller
}
}
if(file_exists("langfiles.zip"))
unlink("langfiles.zip");
if(file_exists("/tmp/langfiles.zip"))
unlink("/tmp/langfiles.zip");
$zip = new ZipArchive();
if (empty($data) || $zip->open("langfiles.zip", ZipArchive::CREATE) !== TRUE) {
if (empty($data) || $zip->open("/tmp/langfiles.zip", ZipArchive::CREATE) !== TRUE) {
return redirect(url('synoptic', ['exclude' => $exclude]));
}
......@@ -344,7 +344,7 @@ class LanguageController extends Controller
$zip->close();
return response()->download("langfiles.zip", $filename.".zip");
return response()->download("/tmp/langfiles.zip", $filename.".zip");
} catch(ErrorException $e) {
echo("Failed to write ".$filename);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment