mirror of
https://github.com/silverstripe/silverstripe-translatable
synced 2024-10-22 11:05:59 +02:00
Reduced line length
This commit is contained in:
parent
1371622b15
commit
9daff5f2d0
@ -1457,7 +1457,10 @@ class Translatable extends DataExtension implements PermissionProvider {
|
|||||||
$dbLangs = $query->execute()->column();
|
$dbLangs = $query->execute()->column();
|
||||||
$langlist = array_merge((array)Translatable::default_locale(), (array)$dbLangs);
|
$langlist = array_merge((array)Translatable::default_locale(), (array)$dbLangs);
|
||||||
$returnMap = array();
|
$returnMap = array();
|
||||||
$allCodes = array_merge(Config::inst()->get('i18n','all_locales'), Config::inst()->get('i18n','common_locales'));
|
$allCodes = array_merge(
|
||||||
|
Config::inst()->get('i18n','all_locales'),
|
||||||
|
Config::inst()->get('i18n','common_locales')
|
||||||
|
);
|
||||||
foreach ($langlist as $langCode) {
|
foreach ($langlist as $langCode) {
|
||||||
if($langCode && isset($allCodes[$langCode])) {
|
if($langCode && isset($allCodes[$langCode])) {
|
||||||
if(is_array($allCodes[$langCode])) {
|
if(is_array($allCodes[$langCode])) {
|
||||||
|
Loading…
Reference in New Issue
Block a user