Convert DefaultLang to use $config
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
This commit is contained in:
parent
d70ab76665
commit
2819cd0c2e
@ -5258,18 +5258,9 @@
|
||||
<DocblockTypeContradiction>
|
||||
<code><![CDATA[$locales]]></code>
|
||||
</DocblockTypeContradiction>
|
||||
<MixedArrayOffset>
|
||||
<code><![CDATA[$langs[$this->config->get('DefaultLang')]]]></code>
|
||||
</MixedArrayOffset>
|
||||
<MixedArrayTypeCoercion>
|
||||
<code><![CDATA[$langs[$this->config->get('DefaultLang')]]]></code>
|
||||
</MixedArrayTypeCoercion>
|
||||
<MixedAssignment>
|
||||
<code><![CDATA[$languageFromCookie]]></code>
|
||||
</MixedAssignment>
|
||||
<PossiblyNullArrayOffset>
|
||||
<code><![CDATA[$langs]]></code>
|
||||
</PossiblyNullArrayOffset>
|
||||
<RedundantConditionGivenDocblockType>
|
||||
<code><![CDATA[$availableLocales !== false]]></code>
|
||||
</RedundantConditionGivenDocblockType>
|
||||
|
||||
@ -949,7 +949,7 @@ class LanguageManager
|
||||
}
|
||||
|
||||
// Fallback to English
|
||||
return $langs[$this->config->get('DefaultLang')] ?? $langs['en'];
|
||||
return $langs[$this->config->config->DefaultLang] ?? $langs['en'];
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user