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
LQDN Adminsys
don
Commits
f399ef59
Commit
f399ef59
authored
Dec 20, 2018
by
Okhin
Browse files
Actually switch languages
parent
55459c47
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/controller/controller.php
View file @
f399ef59
...
...
@@ -42,7 +42,7 @@ class Controller
foreach
(
explode
(
','
,
LANGUAGES
)
as
$language
)
{
foreach
(
$accept_languages
as
$accept_language
)
{
if
(
s
trpos
(
$language
,
$accept_language
)
>=
0
)
{
if
(
s
ubstr
(
$language
,
0
,
strlen
(
$accept_language
)
)
===
$accept_language
)
{
$lang
=
$language
;
$lang_short
=
explode
(
$language
,
'-'
)[
0
];
}
...
...
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