Commit 5ecba7e6 authored by Thomas Löffler's avatar Thomas Löffler

Merge branch 'empty-accepted-lang' into 'master'

[BUGFIX] Detect if browser sent no accepted languages

See merge request !6
parents 6698bb1d 13f18be8
Pipeline #569 failed with stage
in 15 seconds
......@@ -163,6 +163,10 @@ class LanguageDetection extends AbstractPlugin
//Get Accepted Languages from Browser
$acceptedLanguagesArr = $this->getAcceptedLanguages();
if (empty($acceptedLanguagesArr)) {
break;
}
if (TYPO3_DLOG) {
GeneralUtility::devLog('Detecting user browser languages', $this->extKey, 0, $acceptedLanguagesArr);
}
......
Markdown is supported
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