Ignore:
Timestamp:
08/17/10 16:17:12 (14 years ago)
Author:
viani
Message:

Ticket #1135 - Merged r1990:3166 from /trunk/workflow into /branches/2.2/workflow

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/workflow/inc/class.WorkflowMacro.inc.php

    r795 r3167  
    4040                require dirname(__FILE__) . '/../setup/setup.inc.php'; /* DO NOT USE require_once */ 
    4141                $GLOBALS['phpgw_info']['apps']['workflow'] = $setup_info['workflow']; 
    42                 $row = $GLOBALS['workflow']['workflowObjects']->getDBExpresso()->Link_ID->query('SELECT config_value FROM phpgw_config WHERE config_app = ? AND config_name = ?', array('phpgwapi', 'files_dir'))->fetchRow(); 
     42                $row = Factory::getInstance('WorkflowObjects')->getDBExpresso()->Link_ID->query('SELECT config_value FROM phpgw_config WHERE config_app = ? AND config_name = ?', array('phpgwapi', 'files_dir'))->fetchRow(); 
    4343                $_SESSION['phpgw_info']['workflow']['vfs_basedir'] = ($row !== false) ? $row['config_value'] : '/home/expressolivre'; 
    4444                $_SESSION['phpgw_info']['workflow']['phpgw_api_inc'] = PHPGW_API_INC; 
     
    4848                require_once PHPGW_API_INC . '/functions.inc.php'; 
    4949                require_once 'engine/class.ajax_config.inc.php'; 
    50                 require_once 'engine/class.ajax_ldap.inc.php'; 
    5150                require_once 'engine/config.ajax.inc.php'; 
    52                 $GLOBALS['ajax']->ldap = new ajax_ldap(); 
     51                $GLOBALS['ajax']->ldap = &Factory::getInstance('ajax_ldap'); 
    5352 
    5453                /* definição de algumas constantes */ 
     
    6463        public function prepareProcessEnvironment($processID) 
    6564        { 
    66                 require_once GALAXIA_LIBRARY . '/src/common/WfRuntime.php'; 
    6765                require_once PHPGW_SERVER_ROOT . '/workflow/inc/local/functions/local.functions.php'; 
    6866 
    69                 $runtime = new WfRuntime($GLOBALS['workflow']['workflowObjects']->getDBGalaxia()->Link_ID); 
     67                $runtime = &Factory::getInstance('WfRuntime'); 
    7068                $runtime->loadProcess($processID); 
    7169 
Note: See TracChangeset for help on using the changeset viewer.