Changeset 3172
- Timestamp:
- 08/18/10 09:36:16 (13 years ago)
- Location:
- sandbox/workflow/branches/993
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/workflow/branches/993/inc/class.bo_userinterface.inc.php
r2372 r3172 51 51 function processes() 52 52 { 53 $account_id = $_SESSION['phpgw_info']['workflow']['account_id'];53 $account_id = Settings::get('expresso', 'user', 'account_id'); 54 54 $result = $GLOBALS['ajax']->gui->gui_list_user_activities($account_id, '0', '-1', "wf_menu_path__ASC, ga.wf_name__ASC", '', '', '', true, true, true, ''); 55 55 … … 139 139 function inbox($params) 140 140 { 141 $preferences = $_SESSION['phpgw_info']['workflow']['user']['preferences'];141 $preferences = Settings::get('workflow', 'preferences'); 142 142 143 143 /* initialize Paging Class */ … … 170 170 $pid = (int) $params['pid']; 171 171 $search_term = $params['search_term']; 172 $account_id = $_SESSION['phpgw_info']['workflow']['account_id'];172 $account_id = Settings::get('expresso', 'user', 'account_id'); 173 173 $result = $GLOBALS['ajax']->gui->gui_list_user_instances($account_id, 0, -1, $sort, $search_term, "ga.wf_is_interactive = 'y'", false, $pid, true, false, true, false, false, false); 174 174 … … 328 328 function inbox_group() 329 329 { 330 $account_id = $_SESSION['phpgw_info']['workflow']['account_id'];330 $account_id = Settings::get('expresso', 'user', 'account_id'); 331 331 $result = $GLOBALS['ajax']->gui->gui_list_user_instances($account_id, 0, -1, 'wf_procname__ASC,wf_name__ASC', '', "ga.wf_is_interactive = 'y'", false, 0, true, false, true, false, false, false); 332 332 … … 545 545 $show_properties = false; 546 546 547 $current_user_id = $_SESSION['phpgw_info']['workflow']['account_id'];547 $current_user_id = Settings::get('expresso', 'user', 'account_id'); 548 548 549 549 /* check if the current user is a process admin */ … … 609 609 function instances($params) 610 610 { 611 $preferences = $_SESSION['phpgw_info']['workflow']['user']['preferences'];611 $preferences = Settings::get('workflow', 'preferences'); 612 612 613 613 $lightVersion = ((isset($preferences['use_light_interface']) ? $preferences['use_light_interface'] : 0) == 1); 614 614 615 615 /* get some parameters */ 616 $userID = $_SESSION['phpgw_info']['workflow']['account_id'];616 $userID = Settings::get('expresso', 'user', 'account_id'); 617 617 $pid = (int) $params['pid']; 618 618 $active = ($params['active'] == 1); … … 721 721 { 722 722 /* paginate the result */ 723 $itemsPerPage = isset($ _SESSION['phpgw_info']['workflow']['user']['preferences']['ui_items_per_page']) ? $_SESSION['phpgw_info']['workflow']['user']['preferences']['ui_items_per_page'] : 15;723 $itemsPerPage = isset($preferences['ui_items_per_page']) ? $preferences['ui_items_per_page'] : 15; 724 724 $paging = Factory::newInstance('Paging', $itemsPerPage, $_POST); 725 725 $output['instances'] = $paging->restrictItems($output['instances']); … … 774 774 private function checkOrgchartAccess() 775 775 { 776 $this->organizationInfo = $this->so->getUserOrganization( $_SESSION['phpgw_info']['workflow']['account_id']);776 $this->organizationInfo = $this->so->getUserOrganization(Settings::get('expresso', 'user', 'account_id')); 777 777 if ($this->organizationInfo === false) 778 778 return array('warning' => 'Você não está cadastrado em nenhuma organização'); … … 1069 1069 $cachedLDAP->setOperationMode($cachedLDAP->OPERATION_MODE_LDAP); 1070 1070 1071 $entry = $cachedLDAP->getEntryByID( $_SESSION['phpgw_info']['workflow']['account_id']);1071 $entry = $cachedLDAP->getEntryByID(Settings::get('expresso', 'user', 'account_id')); 1072 1072 if ( $entry && ! is_null($entry['telephonenumber']) ) 1073 1073 $fromNumber = $entry['telephonenumber']; -
sandbox/workflow/branches/993/inc/smarty/wf_plugins/function.wf_calendar_init.php
r2552 r3172 21 21 $path = $params['path'] . "/"; 22 22 else 23 $path = WF_ SERVER_URL . SEP . 'js' . SEP . 'jscalendar' . SEP;23 $path = WF_BASE_URL . SEP . 'js' . SEP . 'jscalendar' . SEP; 24 24 $defaults = array( 25 25 'css' => $path . 'calendar-blue.css', -
sandbox/workflow/branches/993/inc/smarty/wf_plugins/function.wf_redir_menu.php
r2552 r3172 30 30 $$extract = $params[$extract]; 31 31 32 $base_url = EGW_BAS AE_URL;32 $base_url = EGW_BASE_URL; 33 33 $user_activities = $GLOBALS['workflow']['wf_user_activities']['data']; 34 34 $pid = $GLOBALS['workflow']['wf_process_id']; -
sandbox/workflow/branches/993/lib/settings/Settings.php
r2552 r3172 254 254 self::$_configs['workflow']['preferences']['ui_items_per_page'] = $GLOBALS['phpgw_info']['user']['preferences']['workflow']['ui_items_per_page']; 255 255 self::$_configs['workflow']['preferences']['show_activity_complete_page'] = $GLOBALS['phpgw_info']['user']['preferences']['workflow']['show_activity_complete_page']; 256 self::$_configs['workflow']['preferences']['common']['template_set'] = $GLOBALS['phpgw_info']['server']['template_set']; 256 257 257 258 self::$_configs['workflow']['app']['title'] = $GLOBALS['phpgw_info']['apps']['workflow']['title'];
Note: See TracChangeset
for help on using the changeset viewer.