mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 01:13:25 +01:00
also using default cli exceptin handler
This commit is contained in:
parent
fa73ad5339
commit
94a123c537
@ -491,6 +491,7 @@ function load_egw($user,$passwd,$domain='default')
|
||||
'currentapp' => 'filemanager',
|
||||
'noheader' => true,
|
||||
'autocreate_session_callback' => 'user_pass_from_argv',
|
||||
'no_exception_handler' => 'cli',
|
||||
)
|
||||
);
|
||||
|
||||
@ -516,7 +517,6 @@ function load_egw($user,$passwd,$domain='default')
|
||||
die("Unknown user or password!\n");
|
||||
}
|
||||
}
|
||||
set_exception_handler('cli_exception_handler'); // otherwise we get html!
|
||||
|
||||
$cmd = $GLOBALS['cmd'];
|
||||
if (!in_array($cmd,array('ls','find','mount','umount','eacl')) && $GLOBALS['egw_info']['server']['files_dir'] && !is_writable($GLOBALS['egw_info']['server']['files_dir']))
|
||||
@ -780,12 +780,6 @@ function do_find($bases,$options)
|
||||
}
|
||||
}
|
||||
|
||||
function cli_exception_handler(Exception $e)
|
||||
{
|
||||
echo $e->getMessage()."\n";
|
||||
exit($e->getCode());
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert a numerical mode to a symbolic mode-string
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user