mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 01:13:25 +01:00
Load anonymous user's lang preference for error translation
This commit is contained in:
parent
f39c3b83e4
commit
4420e9662d
@ -208,6 +208,11 @@ class Sharing
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Load lang preference for error translations
|
||||||
|
if(empty($GLOBALS['egw_info']['user']['preferences']['common']['lang']))
|
||||||
|
{
|
||||||
|
$GLOBALS['egw_info']['user']['preferences'] = (new Preferences(Accounts::id2name('anonymous', 'account_id')))->read();
|
||||||
|
}
|
||||||
if (empty($token) || !($share = self::$db->select(self::TABLE, '*', array(
|
if (empty($token) || !($share = self::$db->select(self::TABLE, '*', array(
|
||||||
'share_token' => $token,
|
'share_token' => $token,
|
||||||
'(share_expires IS NULL OR share_expires > '.self::$db->quote(time(), 'date').')',
|
'(share_expires IS NULL OR share_expires > '.self::$db->quote(time(), 'date').')',
|
||||||
|
Loading…
Reference in New Issue
Block a user