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.ui_userinterface.inc.php

    r1227 r3167  
    4545                $GLOBALS['phpgw_info']['flags']['app_header'] = $GLOBALS['phpgw_info']['apps']['workflow']['title']; 
    4646                $GLOBALS['phpgw_info']['flags'] = array('noheader' => false, 'nonavbar' => false, 'currentapp' => 'workflow'); 
    47                 $smarty = CreateObject('workflow.workflow_smarty'); 
     47                $smarty = Factory::getInstance('workflow_smarty'); 
    4848 
    4949                // Check if workflow config is ok 
     
    114114 
    115115                // Get a connection to db workflow and galaxia (module) 
    116                 if ($GLOBALS['workflow']['workflowObjects']->getDBWorkflow()->Error) 
     116                if (Factory::getInstance('WorkflowObjects')->getDBWorkflow()->Error) 
    117117                        $errors[] = 'Unable to connect to database Workflow'; 
    118118 
    119                 if ($errormsg = $GLOBALS['workflow']['workflowObjects']->getDBGalaxia()->Error) 
     119                if ($errormsg = Factory::getInstance('WorkflowObjects')->getDBGalaxia()->Error) 
    120120                        $errors[] = 'Unable to connect to database Galaxia'; 
    121121 
     
    129129 
    130130                /* create some objects */ 
    131                 require_once 'class.so_userinterface.inc.php'; 
    132                 $so = new so_userinterface(); 
    133                 $smarty = CreateObject('workflow.workflow_smarty'); 
     131                $so = &Factory::getInstance('so_userinterface'); 
     132                $smarty = &Factory::getInstance('workflow_smarty'); 
    134133 
    135134                /* get the user's organization */ 
     
    202201 
    203202                /* pass variables to smarty */ 
    204                 $smarty->assign('areasInfo', $flatAreas); 
     203                $smarty->assign('areasJson', json_encode($flatAreas)); 
    205204                $smarty->assign('javaScripts', $javaScripts); 
    206205                $smarty->assign('css', $css); 
Note: See TracChangeset for help on using the changeset viewer.