*
* @return CRM_Core_Smarty
*/
- private function __construct() {
+ public function __construct() {
parent::__construct();
}
$this->assign_by_ref('config', $config);
$this->assign_by_ref('session', $session);
- global $tsLocale;
+ $tsLocale = CRM_Core_I18n::getLocale();
$this->assign('tsLocale', $tsLocale);
// CRM-7163 hack: we don’t display langSwitch on upgrades anyway
}
private function getLocale() {
- global $tsLocale;
+ $tsLocale = CRM_Core_I18n::getLocale();
if (!empty($tsLocale)) {
return $tsLocale;
}