mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-27 02:14:45 +01:00
replace no longer existing depricated egw_info->user email and fullname
This commit is contained in:
parent
46cb5a6e59
commit
8b2a596918
@ -55,11 +55,11 @@ class uiasyncservice
|
||||
|
||||
if ($_POST['test'])
|
||||
{
|
||||
if (strpos($GLOBALS['egw_info']['user']['email'],'@') === false)
|
||||
if (strpos($GLOBALS['egw_info']['user']['account_email'],'@') === false)
|
||||
{
|
||||
echo '<p><b>'.lang("You have no email address for your user set !!!")."</b></p>\n";
|
||||
}
|
||||
elseif (!$async->set_timer($times,'test','admin.uiasyncservice.test',(array)$GLOBALS['egw_info']['user']['email']))
|
||||
elseif (!$async->set_timer($times,'test','admin.uiasyncservice.test',(array)$GLOBALS['egw_info']['user']['account_email']))
|
||||
{
|
||||
echo '<p><b>'.lang("Error setting timer, wrong syntax or maybe there's one already running !!!")."</b></p>\n";
|
||||
}
|
||||
|
@ -81,8 +81,8 @@ class smtpplesk extends defaultsmtp
|
||||
//echo "<p>smtpplesk::getAccountEmailAddress()</p>\n";
|
||||
|
||||
return array(array(
|
||||
'name' => $GLOBALS['egw_info']['user']['fullname'],
|
||||
'address' => $GLOBALS['egw_info']['user']['email'],
|
||||
'name' => $GLOBALS['egw_info']['user']['account_fullname'],
|
||||
'address' => $GLOBALS['egw_info']['user']['account_email'],
|
||||
'type' => 'default'
|
||||
));
|
||||
}
|
||||
|
@ -1113,7 +1113,7 @@ class preferences
|
||||
// the user does not directly manipulate this pref for the default email account
|
||||
if ((string)$acctnum == '0')
|
||||
{
|
||||
$prefs['email']['fullname'] = $GLOBALS['egw_info']['user']['fullname'];
|
||||
$prefs['email']['fullname'] = $GLOBALS['egw_info']['user']['account_fullname'];
|
||||
}
|
||||
|
||||
// = = = = SIMPLER PREFS = = = =
|
||||
|
@ -120,8 +120,8 @@ class send extends egw_mailer
|
||||
$this->ClearAttachments();
|
||||
$this->ClearCustomHeaders();
|
||||
|
||||
$this->FromName = $GLOBALS['egw_info']['user']['fullname'];
|
||||
$this->From = $GLOBALS['egw_info']['user']['email'];
|
||||
$this->FromName = $GLOBALS['egw_info']['user']['account_fullname'];
|
||||
$this->From = $GLOBALS['egw_info']['user']['account_email'];
|
||||
$this->Sender = '';
|
||||
|
||||
$this->AddCustomHeader('X-Mailer:eGroupWare (http://www.eGroupWare.org)');
|
||||
|
Loading…
Reference in New Issue
Block a user