mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-09 01:24:07 +01:00
Small patch to fix the lack of a locale being set in the users preferences.
This commit is contained in:
parent
799ff3e90b
commit
0f204e662e
@ -32,6 +32,10 @@ class calendar_holiday
|
||||
{
|
||||
$this->users['user'] = $phpgw_info['user']['preferences']['calendar']['locale'];
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->users['user'] = 'US';
|
||||
}
|
||||
$owner_id = get_account_id($owner);
|
||||
if($owner_id != $phpgw_info['user']['account_id'])
|
||||
{
|
||||
@ -41,6 +45,11 @@ class calendar_holiday
|
||||
{
|
||||
$this->users['owner'] = $owner_prefs['calendar']['locale'];
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->users['owner'] = 'US';
|
||||
}
|
||||
|
||||
}
|
||||
if($phpgw_info['server']['auto_load_holidays'] == True)
|
||||
{
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
if (empty($phpgw_info['user']['preferences']['calendar']['locale']))
|
||||
{
|
||||
$rule = 'EN';
|
||||
$rule = 'US';
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user