i18n: Fix getPrimaryLanguage() on non-object
This addresses issues #1964 & #3668 where $cfg might be null and cause a non-object error. Check if $cfg is set, if not return the default en_US language.
Loading
Please register or sign in to comment