replace no longer existing depricated egw_info->user email and fullname

This commit is contained in:
Ralf Becker 2013-07-04 18:00:11 +00:00
parent 46cb5a6e59
commit 8b2a596918
4 changed files with 7 additions and 7 deletions

View File

@ -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";
}

View File

@ -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'
));
}

View File

@ -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 = = = =

View File

@ -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)');