Changeset 8091 for trunk


Ignore:
Timestamp:
04/15/13 11:14:04 (11 years ago)
Author:
viani
Message:

Ticket #3424 - Correção de bug na classe de Log do Workflow

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/workflow/inc/class.Logger.inc.php

    r3167 r8091  
    2929 
    3030        /** 
     31         * @var object $db Objeto de banco de dados do modulo workflow 
     32         * @access private 
     33         */ 
     34        private $dbGalaxia = null; 
     35 
     36        /** 
    3137         * @var string $logPath Caminho onde será salvo o arquivo de log, caso o tipo de log Log_file seja adicionado à composição 
    3238         * @access private 
     
    8187 
    8288                $this->db =& Factory::getInstance('WorkflowObjects')->getDBExpresso()->Link_ID; 
     89                $this->dbGalaxia =& Factory::getInstance('WorkflowObjects')->getDBGalaxia()->Link_ID; 
    8390 
    8491                if(!empty($curProcessName)){ 
     92 
    8593                        $query = ' 
    8694                                SELECT 
     
    8997                                        egw_wf_processes'; 
    9098 
    91                         if(!($result = $this->db->query($query))) 
     99                        if(!($result = $this->dbGalaxia->query($query))) 
    92100                                throw new Exception(lang('Cannot execute query')); 
    93101 
     
    131139                                                wf_config_name like 'log_level' 
    132140                                                "; 
    133                         $config_value = array_pop($this->db->query($query)->GetArray(-1)); 
     141                        $config_value = array_pop($this->dbGalaxia->query($query)->GetArray(-1)); 
    134142                        $this->logLevel = $config_value['wf_config_value_int']; 
    135143                } else { 
Note: See TracChangeset for help on using the changeset viewer.