mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-12 08:58:25 +01:00
Fix multi-domain handling on command line
This commit is contained in:
parent
8615b3c9fa
commit
fd4315fec3
@ -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,
|
||||||
);
|
);
|
||||||
@ -136,7 +139,7 @@
|
|||||||
fwrite(STDERR,"importexport_cli: ". $file. ' is not readable'."\n");
|
fwrite(STDERR,"importexport_cli: ". $file. ' is not readable'."\n");
|
||||||
exit(INVALID_OPTION);
|
exit(INVALID_OPTION);
|
||||||
}
|
}
|
||||||
|
|
||||||
$definition = new importexport_definition($definition);
|
$definition = new importexport_definition($definition);
|
||||||
if( $definition->get_identifier() < 1 ) {
|
if( $definition->get_identifier() < 1 ) {
|
||||||
fwrite(STDERR,"importexport_cli: Definition not found! \n");
|
fwrite(STDERR,"importexport_cli: Definition not found! \n");
|
||||||
|
Loading…
Reference in New Issue
Block a user