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
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/64045


Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
Tested-by: default avatarJosef Glatz <josefglatz@gmail.com>
Tested-by: Andreas Fernandez's avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: Wouter Wolters's avatarWouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
Reviewed-by: default avatarJosef Glatz <josefglatz@gmail.com>
Reviewed-by: Andreas Fernandez's avatarAndreas Fernandez <a.fernandez@scripting-base.de>
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