From a189c3327795235ff346e4b0c7f4c2b74f9fd5b8 Mon Sep 17 00:00:00 2001 From: Mathieu Lutfy Date: Sun, 7 Jan 2018 17:30:36 -0500 Subject: [PATCH] CRM-21627: makeMultilingual: update dbLocale to avoid fatal if lcMessages was not set. --- CRM/Core/I18n/Schema.php | 3 +++ 1 file changed, 3 insertions(+) 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); } /** -- 2.25.1