Refactor language pseudoconstant CRM-12464
[civicrm-core.git] / CRM / Core / I18n.php
index 889d88ae4591981608e4f44a29dd7c8815a1116a..d71c916bd74de31fd15345f413af075ca9f4e30e 100644 (file)
@@ -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();