From 7c1621ea40be2bf70a5b66e750665a8a1c3863ff Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Sun, 19 Oct 2003 18:05:27 +0000 Subject: [PATCH] Move definition of SEP ahead of class instantiation so that php5 won't barf if we use SEP in one of those classes --- phpgwapi/inc/functions.inc.php | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/phpgwapi/inc/functions.inc.php b/phpgwapi/inc/functions.inc.php index faa5f6fbdf..c22e188180 100644 --- a/phpgwapi/inc/functions.inc.php +++ b/phpgwapi/inc/functions.inc.php @@ -204,6 +204,12 @@ exit; } + /****************************************************************************\ + * This is a global constant that should be used * + * instead of / or \ in file paths * + \****************************************************************************/ + define('SEP',filesystem_separator()); + /************************************************************************\ * Required classes * \************************************************************************/ @@ -225,12 +231,6 @@ $GLOBALS['phpgw_info']['flags']['included_classes']['error'] = True; } - /****************************************************************************\ - * This is a global constant that should be used * - * instead of / or \ in file paths * - \****************************************************************************/ - define('SEP',filesystem_separator()); - /*****************************************************************************\ * ACL defines - moved here to work for xml-rpc/soap, also * \*****************************************************************************/ @@ -244,7 +244,6 @@ define('PHPGW_ACL_CUSTOM_2',128); define('PHPGW_ACL_CUSTOM_3',256); - /****************************************************************************\ * Forcing the footer to run when the rest of the script is done. * \****************************************************************************/