fix some errors in new phpUnit tests: using __DIR__ in header.inc.php include

This commit is contained in:
Ralf Becker 2020-03-04 21:20:50 +01:00
parent aa4750009f
commit d86f990bd5

View File

@ -25,9 +25,9 @@ $GLOBALS['egw_info'] = array(
'currentapp' => 'setup', 'currentapp' => 'setup',
'noapi' => True 'noapi' => True
)); ));
if(file_exists('../header.inc.php')) if(file_exists(__DIR__.'/../../header.inc.php'))
{ {
include('../header.inc.php'); include_once(__DIR__.'/../../header.inc.php');
} }
// for an old header we need to setup a reference for the domains // for an old header we need to setup a reference for the domains
if (!is_array($GLOBALS['egw_domain'])) $GLOBALS['egw_domain'] =& $GLOBALS['phpgw_domain']; if (!is_array($GLOBALS['egw_domain'])) $GLOBALS['egw_domain'] =& $GLOBALS['phpgw_domain'];