X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FI18n.php;h=d71c916bd74de31fd15345f413af075ca9f4e30e;hb=c0c9cd8276f94ca6167c74659c5efb09e1b33116;hp=889d88ae4591981608e4f44a29dd7c8815a1116a;hpb=eb7d6f395eee76e939509a63a409a91ce2fbbc84;p=civicrm-core.git diff --git a/CRM/Core/I18n.php b/CRM/Core/I18n.php index 889d88ae45..d71c916bd7 100644 --- a/CRM/Core/I18n.php +++ b/CRM/Core/I18n.php @@ -106,7 +106,7 @@ class CRM_Core_I18n { static $enabled = NULL; if (!$all) { - $all = CRM_Core_I18n_PseudoConstant::languages(); + $all = CRM_Contact_BAO_Contact::buildOptions('preferred_language'); // check which ones are available; add them to $all if not there already $config = CRM_Core_Config::singleton();