Skip to content

Commit

Permalink
CRM_Core_I18n::setLocale should also change the tsLocale global variable
Browse files Browse the repository at this point in the history
  • Loading branch information
mlutfy committed Nov 1, 2018
1 parent 65b98aa commit 96cb919
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CRM/Core/I18n.php
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,9 @@ public function setLocale($locale) {
global $dbLocale;
$dbLocale = "_{$locale}";

// For self::getLocale()
global $tsLocale;
$tsLocale = $locale;
}

/**
Expand Down

0 comments on commit 96cb919

Please sign in to comment.