Deprecation: #88567 - $GLOBALS['LOCAL_LANG']
See forge#88567
Description
The global array
$GLOBALS
contains all labels from language
files that were loaded "globally". However, instead of having this in global
scope, it is more feasible to have it scoped to the actual
Language
that loaded this data, in order to allow various language functionality in the
same PHP process without having to deal with global variables.
For this reason, it is discouraged to use
$GLOBALS
but instead rely on
Language
which returns
the actual values as well, but only the ones loaded from this instance.
Since an instance of
\TYPO3\
is usually available via $GLOBALS
the
labels are accessible within PHP anyways.
Due to this change, the second and third arguments of
Language
have been marked as deprecated.
Impact
Calling the method above with an explicit second and/or third argument will
trigger a PHP
E_
error.
Affected Installations
Any TYPO3 installation with third-party extensions using
$GLOBALS
or the mentioned method with more than one argument,
which is very unlikely.
Migration
Use the return value of
Language
and remove
the second and third arguments to work with label files.