mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
fix conflict with lang() function, by just instanciating setup class
This commit is contained in:
parent
5154bc2f70
commit
77a7d538f5
@ -216,15 +216,30 @@ abstract class CalDAVTest extends TestCase
|
||||
* @return \setup
|
||||
*/
|
||||
private static function getSetup()
|
||||
{
|
||||
static $setup=null;
|
||||
if (!isset($setup))
|
||||
{
|
||||
if (!isset($_REQUEST['domain']))
|
||||
{
|
||||
$_REQUEST['domain'] = $GLOBALS['EGW_DOMAIN'] ?? 'default';
|
||||
}
|
||||
$_REQUEST['ConfigDomain'] = $_REQUEST['domain'];
|
||||
require_once __DIR__.'/../../setup/inc/functions.inc.php';
|
||||
|
||||
return $GLOBALS['egw_setup'];
|
||||
$GLOBALS['egw_info'] = array(
|
||||
'flags' => array(
|
||||
'noheader' => True,
|
||||
'nonavbar' => True,
|
||||
'currentapp' => 'setup',
|
||||
'noapi' => True
|
||||
));
|
||||
if (file_exists(__DIR__ . '/../../header.inc.php'))
|
||||
{
|
||||
include_once(__DIR__ . '/../../header.inc.php');
|
||||
}
|
||||
$setup = new \setup();
|
||||
}
|
||||
return $setup;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user