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/local/classes/class.wf_mail.php

    r2372 r2492  
    5151 
    5252                /* configura os parâmetros para envio de e-mail */ 
    53                 $userLang = $GLOBALS['phpgw_info']['user']['preferences']['common']['lang']; 
     53                $userLang = Settings('expresso', 'preferences', 'lang'); 
    5454                /* FIXME: hardcoded 'br' because phpmailer don't use pt-br */ 
    5555                if ($userLang == 'pt-br') 
     
    7070                { 
    7171                        $this->SMTPAuth = true; 
    72                         $this->Username = $GLOBALS['phpgw_info']['user']['userid']; 
    73                         $this->Password = $GLOBALS['phpgw_info']['user']['passwd']; 
     72                        $this->Username = Settings::get('expresso', 'user', 'userid'); 
     73                        $this->Password = Settings::get('expresso', 'user', 'passwd'); 
    7474                } 
    7575                $this->Encoding = '8bit'; 
Note: See TracChangeset for help on using the changeset viewer.