Commit 0d6f0460 authored by Benni Mack's avatar Benni Mack Committed by Andreas Fernandez
Browse files

[TASK] Remove unused code related to config.locale_all

In TYPO3 v10 locale is set very early in due to the availability of the Site Language,
making the whole set up working properly without having to evaluate
config.locale_all TypoScript.

This code can now safely be removed.

Resolves: #82491
Releases: master
Change-Id: I9df3ec2d2e111e0ec035971fe42efcc280ac6afd

Tested-by: default avatarTYPO3com <>
Tested-by: Georg Ringer's avatarGeorg Ringer <>
Tested-by: default avatarJosef Glatz <>
Tested-by: Andreas Fernandez's avatarAndreas Fernandez <>
Reviewed-by: Wouter Wolters's avatarWouter Wolters <>
Reviewed-by: Georg Ringer's avatarGeorg Ringer <>
Reviewed-by: default avatarJosef Glatz <>
Reviewed-by: Andreas Fernandez's avatarAndreas Fernandez <>
parent b61743f4
......@@ -790,16 +790,8 @@ class GeneralUtility
$labelArr = explode('|', str_replace('"', '', $labels));
// @todo find out which locale is used for current BE user to cover the BE case as well
$oldLocale = setlocale(LC_NUMERIC, 0);
$newLocale = $GLOBALS['TSFE']->config['config']['locale_all'] ?? '';
if ($newLocale) {
setlocale(LC_NUMERIC, $newLocale);
// This is set via Site Handling and in the Locales class via setlocale()
$localeInfo = localeconv();
if ($newLocale) {
setlocale(LC_NUMERIC, $oldLocale);
$sizeInBytes = max($sizeInBytes, 0);
$multiplier = floor(($sizeInBytes ? log($sizeInBytes) : 0) / log($base));
$sizeInUnits = $sizeInBytes / $base ** $multiplier;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment