From: Mathieu Lutfy Date: Sun, 7 Jan 2018 22:30:36 +0000 (-0500) Subject: CRM-21627: makeMultilingual: update dbLocale to avoid fatal if lcMessages was not... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=a189c3327795235ff346e4b0c7f4c2b74f9fd5b8;p=civicrm-core.git CRM-21627: makeMultilingual: update dbLocale to avoid fatal if lcMessages was not set. --- diff --git a/CRM/Core/I18n/Schema.php b/CRM/Core/I18n/Schema.php index 7efdc5103c..b795deacab 100644 --- a/CRM/Core/I18n/Schema.php +++ b/CRM/Core/I18n/Schema.php @@ -107,6 +107,9 @@ class CRM_Core_I18n_Schema { // update civicrm_domain.locales $domain->locales = $locale; $domain->save(); + + // CRM-21627 Updates the $dbLocale + CRM_Core_BAO_ConfigSetting::applyLocale(Civi::settings($domain->id), $domain->locales); } /**