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
3ba6e51f
Commit
3ba6e51f
authored
Feb 01, 2018
by
Torsten Oppermann
Browse files
[TASK] removed deprecated call to compat_version
parent
14fe5833
Changes
1
Hide whitespace changes
Inline
Side-by-side
Classes/Service/ConfigurationService.php
View file @
3ba6e51f
...
...
@@ -127,17 +127,11 @@ class ConfigurationService extends AbstractService {
unset
(
$this
->
extConfig
[
'viewLanguages'
]);
$availableLanguageKeys
=
[];
if
(
GeneralUtility
::
compat_version
(
'6.0'
))
{
/** @var Locales $locales */
$locales
=
GeneralUtility
::
makeInstance
(
'TYPO3\CMS\Core\Localization\Locales'
);
$availableLanguageKeys
=
$locales
->
getLanguages
();
}
else
{
$languages
=
explode
(
'|'
,
TYPO3_languages
);
foreach
(
$languages
as
$language
)
{
$availableLanguageKeys
[
$language
]
=
TRUE
;
}
$languages
=
explode
(
'|'
,
TYPO3_languages
);
foreach
(
$languages
as
$language
)
{
$availableLanguageKeys
[
$language
]
=
TRUE
;
}
foreach
(
$langs
as
$lang
)
{
...
...
Torsten Oppermann
@Oppermann
mentioned in commit
2f64d04e
·
Feb 01, 2018
mentioned in commit
2f64d04e
mentioned in commit 2f64d04e748c3aa6de90967c65d9c8e4f9b16b5c
Toggle commit list
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