CRM_Core_I18n::setLocale should also change the tsLocale global variable
authorMathieu Lutfy <mathieu@bidon.ca>
Thu, 1 Nov 2018 20:12:11 +0000 (16:12 -0400)
committerMathieu Lutfy <mathieu@bidon.ca>
Thu, 1 Nov 2018 20:12:11 +0000 (16:12 -0400)
CRM/Core/I18n.php

index 40107e9824c082af67b837882c90f4a6dcd7f6fd..6dfbe23b566c30388fbd1ab89c46543b298c403c 100644 (file)
@@ -649,6 +649,9 @@ class CRM_Core_I18n {
     global $dbLocale;
     $dbLocale = "_{$locale}";
 
+    // For self::getLocale()
+    global $tsLocale;
+    $tsLocale = $locale;
   }
 
   /**