Changeset 3185 for branches/2.2/workflow/inc
- Timestamp:
- 08/26/10 18:32:29 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/workflow/inc/class.WorkflowMacro.inc.php
r3167 r3185 28 28 29 29 /** 30 * Prepara o ambiente disponibilizado pelo ExpressoLivre/Workflow 30 * Prepare the ExpressoLivre/Workflow's environment 31 * @param bool $preparingToWS True if it's preparing the environment to a webservice call, otherwise False 31 32 * @return void 32 33 * @access public 33 34 */ 34 public function prepareEnvironment( )35 public function prepareEnvironment($preparingToWS = false) 35 36 { 36 37 define('SEP', '/'); 37 $currentApplication = (php_sapi_name() == 'cli') ? 'login' : 'home'; 38 /* if it's a command line or webservice call, set $currentApplication to 'login' */ 39 $currentApplication = ((php_sapi_name() == 'cli') || $preparingToWS) ? 'login' : 'home'; 38 40 $GLOBALS['phpgw_info']['flags'] = array('noheader' => true, 'nonavbar' => true, 'currentapp' => $currentApplication, 'enable_network_class' => true, 'enable_contacts_class' => true, 'enable_nextmatchs_class' => true); 39 41 require_once dirname(__FILE__) . '/../../header.inc.php';
Note: See TracChangeset
for help on using the changeset viewer.