mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-24 00:43:20 +01:00
Load anonymous user's lang preference for error translation
This commit is contained in:
parent
9a770824bb
commit
e399560e32
@ -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(
|
||||
'share_token' => $token,
|
||||
'(share_expires IS NULL OR share_expires > '.self::$db->quote(time(), 'date').')',
|
||||
|
Loading…
Reference in New Issue
Block a user