Fix fatal error, get_account_name() does not exist

This commit is contained in:
nathangray 2016-05-16 10:13:22 -06:00
parent 6aecc62535
commit 7e0b2543d0

View File

@ -836,8 +836,7 @@ class calendar_boupdate extends calendar_bo
{
$preferences = new Api\Preferences($userid);
$GLOBALS['egw_info']['user']['preferences'] = $part_prefs = $preferences->read_repository();
$GLOBALS['egw']->accounts->get_account_name($userid,$lid,$tfn,$tln);
$fullname = Api\Accounts::format_username('',$tfn,$tln);
$fullname = Api\Accounts::username($userid);
}
else // external email address: use Api\Preferences of event-owner, plus some hardcoded settings (eg. ical notification)
{