Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
TYPO3
lfeditor
Commits
39325c65
Commit
39325c65
authored
Feb 01, 2018
by
Torsten Oppermann
Browse files
[TASK] Replace deprecated language constant
parent
29813217
Changes
1
Hide whitespace changes
Inline
Side-by-side
Classes/Service/ConfigurationService.php
View file @
39325c65
...
...
@@ -75,6 +75,7 @@ class ConfigurationService extends AbstractService {
* Note that the default value will be set, if a option check fails.
*
* @return array
* @throws \InvalidArgumentException
*/
public
function
prepareConfig
()
{
if
(
!
empty
(
$this
->
extConfig
))
{
...
...
@@ -127,9 +128,9 @@ class ConfigurationService extends AbstractService {
unset
(
$this
->
extConfig
[
'viewLanguages'
]);
$availableLanguageKeys
=
[];
$l
anguages
=
explode
(
'|'
,
TYPO3_languages
);
$l
ocales
=
GeneralUtility
::
makeInstance
(
ObjectManager
::
class
)
->
get
(
Locales
::
class
);
$languages
=
$locales
->
getLocales
();
foreach
(
$languages
as
$language
)
{
$availableLanguageKeys
[
$language
]
=
TRUE
;
}
...
...
@@ -143,7 +144,7 @@ class ConfigurationService extends AbstractService {
}
}
if
(
$lang
!=
'default'
)
{
if
(
$lang
!=
=
'default'
)
{
$this
->
extConfig
[
'viewLanguages'
][]
=
$lang
;
}
}
...
...
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