Skip to content

Commit

Permalink
fix some errors in new phpUnit tests: using __DIR__ in header.inc.php…
Browse files Browse the repository at this point in the history
… include
  • Loading branch information
ralfbecker committed Mar 4, 2020
1 parent aa47500 commit d86f990
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup/inc/functions.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
'currentapp' => 'setup',
'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
if (!is_array($GLOBALS['egw_domain'])) $GLOBALS['egw_domain'] =& $GLOBALS['phpgw_domain'];
Expand Down

0 comments on commit d86f990

Please sign in to comment.