mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
fix some errors in new phpUnit tests: using __DIR__ in header.inc.php include
This commit is contained in:
parent
aa4750009f
commit
d86f990bd5
@ -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'];
|
||||||
|
Loading…
Reference in New Issue
Block a user