move defining of (deprecated) SEP constant to common functions, as there are cases where it gets used before defined

This commit is contained in:
Ralf Becker 2014-12-13 09:53:18 +00:00
parent b10a0084ea
commit e7f4bb0848
3 changed files with 6 additions and 3 deletions

View File

@ -383,7 +383,6 @@ class egw extends egw_minimal
*/
function define_egw_constants()
{
define('SEP',filesystem_separator());
define('EGW_ACL_READ',1);
define('EGW_ACL_ADD',2);
define('EGW_ACL_EDIT',4);

View File

@ -1096,6 +1096,7 @@ function get_account_id($account_id = '',$default_id = '')
*
* This is completely unnecessary, as you can use forward slashes in php under every OS -- RalfBecker 2005/11/09
*
* @deprecated just use forward slashes supported by PHP on all OS
* @return file system separator
*/
function filesystem_separator()
@ -1110,6 +1111,11 @@ function filesystem_separator()
}
}
/**
* @deprecated just use forward slashes supported by PHP on all OS
*/
define('SEP', filesystem_separator());
/**
* print an array or object as pre-formatted html
*

View File

@ -52,8 +52,6 @@ if(!defined('EGW_SERVER_ROOT') && !defined('EGW_INCLUDE_ROOT'))
require_once(EGW_INCLUDE_ROOT . '/phpgwapi/inc/common_functions.inc.php');
define('SEP',filesystem_separator());
/**
* function to handle multilanguage support
*