fix phrase "config"

This commit is contained in:
Ralf Becker 2019-08-05 14:33:17 +02:00
parent e94b527252
commit 507d5cc80a

View File

@ -1126,14 +1126,14 @@ abstract class admin_cmd
// instanciate single periodic execution object // instanciate single periodic execution object
$single = $cmd->as_array(); $single = $cmd->as_array();
$single['parent'] = $single['id']; $single['parent'] = $single['id'];
$single = array_diff_key($single, array_flip(array( $args = array_diff_key($single, array_flip(array(
'id','uid', 'id','uid',
'created','modified','modifier', 'created','modified','modifier',
'async_job_id','rrule','scheduled', 'async_job_id','rrule','scheduled',
'status', 'set', 'old','value','result' 'status', 'set', 'old','value','result'
))); )));
$periodic = admin_cmd::instanciate($single); $periodic = admin_cmd::instanciate($args);
try { try {
$value = $periodic->run(null, false); $value = $periodic->run(null, false);
@ -1207,7 +1207,7 @@ abstract class admin_cmd
} }
elseif (!$data['remote_hash'] && !($data['install_id'] && $data['config_passwd'])) elseif (!$data['remote_hash'] && !($data['install_id'] && $data['config_passwd']))
{ {
throw new Api\Exception\WrongUserinput(lang('Either Install ID AND Api\Config password needed OR the remote hash!')); throw new Api\Exception\WrongUserinput(lang('Either Install ID AND config password needed OR the remote hash!'));
} }
//_debug_array($data); //_debug_array($data);
admin_cmd::$remote->init($data); admin_cmd::$remote->init($data);