Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
MetaGer
Commits
d8b433d8
Commit
d8b433d8
authored
Jul 10, 2017
by
Aria Givi
Browse files
Datei wird im Verzeichnis 'tmp' zwischengespeichert.
parent
56ce437a
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/LanguageController.php
View file @
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
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment