Commit 6b084142 authored by bgm's avatar bgm

setLocale: precaution for when setLocale is called on an unilingual site

parent f72d5f51
......@@ -667,9 +667,12 @@ class CRM_Core_I18n {
// for sql queries
// For sql queries, if running in DB multi-lingual mode.
global $dbLocale;
$dbLocale = "_{$locale}";
if ($dbLocale) {
$dbLocale = "_{$locale}";
// For self::getLocale()
global $tsLocale;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment