Fix multi-domain handling on command line

This commit is contained in:
Nathan Gray 2011-01-11 23:31:44 +00:00
parent 8615b3c9fa
commit fd4315fec3

View File

@ -101,13 +101,16 @@
exit(INVALID_OPTION); exit(INVALID_OPTION);
} }
// Can't change domain once header is loaded
$_REQUEST['domain'] = $domain;
$GLOBALS['egw_info']['flags'] = array( $GLOBALS['egw_info']['flags'] = array(
'disable_Template_class' => True, 'disable_Template_class' => True,
'noheader' => True, 'noheader' => True,
'nonavbar' => True, 'nonavbar' => True,
'currentapp' => 'importexport', 'currentapp' => 'importexport',
'autocreate_session_callback' => 'import_export_access', 'autocreate_session_callback' => 'import_export_access',
'login' => $user, 'login' => $user . '@' . $domain,
'passwd' => $password, 'passwd' => $password,
'noapi' => True, 'noapi' => True,
); );