Merge pull request #20346 from owncloud/show-language-code-for-unknown-languages

Show the language code in personal settings for unknown languages
This commit is contained in:
Thomas Müller 2015-11-06 13:36:42 +01:00
commit 6e7411fc4c
1 changed files with 8 additions and 0 deletions

View File

@ -93,6 +93,14 @@ foreach($languageCodes as $lang) {
}
}
// if user language is not available but set somehow: show the actual code as name
if (!is_array($userLang)) {
$userLang = [
'code' => $userLang,
'name' => $userLang,
];
}
ksort($commonlanguages);
// sort now by displayed language not the iso-code