moved common_function include before the session restore, to fix a problem occuring in php5.2 from time to time:

PHP Fatal error:  Call to undefined function  filesystem_separator() in /srv/www/htdocs/egw-1.2/phpgwapi/inc/class.egw.inc.php on line 381
This commit is contained in:
Ralf Becker 2007-01-03 08:06:47 +00:00
parent e924f671b0
commit 8961aa9658

View File

@ -47,6 +47,8 @@
echo '!!! PLEASE CORRECT THIS SITUATION !!!</b></p>';
}
include_once(EGW_API_INC.'/common_functions.inc.php');
// check if we can restore the eGW enviroment from the php-session
if ($GLOBALS['egw_info']['server']['sessions_type'] == 'php4-restore' && $_REQUEST['sessionid'])
{
@ -89,7 +91,6 @@
unset($_SESSION['egw_object_cache']);
}
}
include(EGW_API_INC.'/common_functions.inc.php');
print_debug('sane environment','messageonly','api');