Unverified Commit b105d558 authored by colemanw's avatar colemanw Committed by GitHub

Merge pull request #13465 from mlutfy/setLocale

setLocale: precaution for when setLocale is called on an unilingual site
parents 1130d034 6b084142
......@@ -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