Ignore:
Timestamp:
03/24/10 15:22:16 (14 years ago)
Author:
pedroerp
Message:

Ticket #609 - Corrigindo o uso da factory em vários arquivos.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/workflow/branches/609/inc/common.inc.php

    r2233 r2338  
    1010\**************************************************************************/ 
    1111 
    12  
    1312/** 
    1413 * Server base path. This constant is somewhat simililar to 
    1514 * 'PHPGW_SERVER_ROOT'. Nevertheless, there are cases that we 
    1615 * access Workflow directly and it must be defined somewhere. 
     16 * Recently discovered, when we are runnnig jobs HTTP_SERVER_VARS 
     17 * exported by apache are not available. 
     18 * Therefore, we are using this workaround here, setting 
     19 * EGW_SERVER_ROOT based on the location of this file. This constant 
     20 * should be updated properly every time we move this file. 
    1721 * @name EGW_SERVER_ROOT 
    1822 */ 
    19 define('EGW_SERVER_ROOT', $GLOBALS['HTTP_SERVER_VARS']['DOCUMENT_ROOT']); 
     23define('EGW_SERVER_ROOT', dirname(dirname(dirname(__FILE__)))); 
     24//define('EGW_SERVER_ROOT', $GLOBALS['HTTP_SERVER_VARS']['DOCUMENT_ROOT']); 
    2025 
    2126/** 
Note: See TracChangeset for help on using the changeset viewer.