Ignore:
Timestamp:
04/12/10 16:21:32 (14 years ago)
Author:
pedroerp
Message:

Ticket #993 - Trocando acessos à GLOBALS por acessos à Settings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/workflow/branches/993/inc/class.bo_agent_mail_smtp.inc.php

    r2372 r2492  
    300300                $data['smtpAuth']               = $profileData['smtpAuth']; 
    301301                $data['smtpType']               = $profileData['smtpType']; 
    302                 $useremail = $this->bo_emailadmin->getAccountEmailAddress($GLOBALS['phpgw_info']['user']['userid'], $this->profileID); 
     302                $useremail = $this->bo_emailadmin->getAccountEmailAddress(Settings::get('expresso', 'user', 'userid'), $this->profileID); 
    303303                $data['emailAddress']           = $useremail[0]['address']; 
    304304                return $data; 
     
    422422        function prepare_mail() 
    423423        { 
    424                 $userLang = $GLOBALS['phpgw_info']['user']['preferences']['common']['lang']; 
     424                $userLang = Settings::get('expresso', 'preferences', 'lang'); 
    425425                $langFile = PHPGW_SERVER_ROOT."/phpgwapi/setup/phpmailer.lang-$userLang.php"; 
    426426                if(file_exists($langFile)) 
     
    448448                { 
    449449                        $this->mail->SMTPAuth   = true; 
    450                         $this->mail->Username   = $GLOBALS['phpgw_info']['user']['userid']; 
    451                         $this->mail->Password   = $GLOBALS['phpgw_info']['user']['passwd']; 
     450                        $this->mail->Username   = Settings::get('expresso', 'user', 'userid'); 
     451                        $this->mail->Password   = Settings::get('expresso', 'user', 'passwd'); 
    452452                } 
    453453                 
     
    668668                                        //the current instance/activity user which is in fact running 
    669669                                        //this class actually 
    670                                         $matches[1][$key] = $GLOBALS['phpgw_info']['user']['email']; 
     670                                        $matches[1][$key] = Settings::get('expresso', 'user', 'email'); 
    671671                                        break; 
    672672                                case 'owner' : 
Note: See TracChangeset for help on using the changeset viewer.