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
e93c7d34
Commit
e93c7d34
authored
Aug 22, 2017
by
Aria Givi
Browse files
MethodNotAllowedException muss behoben werden
parent
dae6cd14
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/LanguageController.php
View file @
e93c7d34
...
...
@@ -171,11 +171,6 @@ class LanguageController extends Controller
if
(
!
$this
->
endsWith
(
$filename
,
"."
)
&&
!
in_array
(
basename
(
$filename
),
$fileNames
))
{
$fileNames
[]
=
basename
(
$filename
);
}
foreach
(
$ex
[
'files'
]
as
$file
)
{
if
(
$file
===
basename
(
$filename
))
{
continue
2
;
}
}
if
(
!
$this
->
endsWith
(
$filename
,
"."
))
{
$tmp
=
include
$filename
;
foreach
(
$tmp
as
$key
=>
$value
)
{
...
...
@@ -187,12 +182,17 @@ class LanguageController extends Controller
$fn
=
""
;
# Wähle die erste, unbearbeitete Datei aus
# Wähle die erste, unbearbeitete Datei aus
, überspringe bereits bearbeitete Dateien
if
(
$chosenFile
!==
""
)
{
$fn
=
$chosenFile
;
}
else
{
foreach
(
$languageObjects
as
$folder
=>
$languageObject
)
{
foreach
(
$languageObject
->
stringMap
as
$languageFileName
=>
$languageFile
)
{
foreach
(
$ex
[
'files'
]
as
$file
)
{
if
(
$file
===
basename
(
$languageFileName
))
{
continue
2
;
}
}
$fn
=
$languageFileName
;
break
2
;
}
...
...
@@ -369,7 +369,7 @@ class LanguageController extends Controller
if
(
isset
(
$request
[
'nextpage'
]))
{
return
redirect
(
url
(
'synoptic'
,
[
'exclude'
=>
$ex
]));
}
elseif
(
isset
(
$request
[
'chosenFile'
]))
{
return
redirect
(
url
(
'synoptic'
,
[
'exclude'
=>
$ex
]
,
[
'chosenFile'
=>
$request
[
'chosenFile'
]]));
return
redirect
(
url
(
'synoptic'
,
[
'exclude'
=>
$ex
,
'chosenFile'
=>
$request
[
'chosenFile'
]]));
}
}
}
...
...
Write
Preview
Supports
Markdown
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