Changeset 3167 for branches/2.2/workflow/inc/class.WorkflowMacro.inc.php
- Timestamp:
- 08/17/10 16:17:12 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/workflow/inc/class.WorkflowMacro.inc.php
r795 r3167 40 40 require dirname(__FILE__) . '/../setup/setup.inc.php'; /* DO NOT USE require_once */ 41 41 $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(); 43 43 $_SESSION['phpgw_info']['workflow']['vfs_basedir'] = ($row !== false) ? $row['config_value'] : '/home/expressolivre'; 44 44 $_SESSION['phpgw_info']['workflow']['phpgw_api_inc'] = PHPGW_API_INC; … … 48 48 require_once PHPGW_API_INC . '/functions.inc.php'; 49 49 require_once 'engine/class.ajax_config.inc.php'; 50 require_once 'engine/class.ajax_ldap.inc.php';51 50 require_once 'engine/config.ajax.inc.php'; 52 $GLOBALS['ajax']->ldap = new ajax_ldap();51 $GLOBALS['ajax']->ldap = &Factory::getInstance('ajax_ldap'); 53 52 54 53 /* definição de algumas constantes */ … … 64 63 public function prepareProcessEnvironment($processID) 65 64 { 66 require_once GALAXIA_LIBRARY . '/src/common/WfRuntime.php';67 65 require_once PHPGW_SERVER_ROOT . '/workflow/inc/local/functions/local.functions.php'; 68 66 69 $runtime = new WfRuntime($GLOBALS['workflow']['workflowObjects']->getDBGalaxia()->Link_ID);67 $runtime = &Factory::getInstance('WfRuntime'); 70 68 $runtime->loadProcess($processID); 71 69
Note: See TracChangeset
for help on using the changeset viewer.