mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-26 18:03:39 +01:00
* fixed not working scheduled import from vfs
This commit is contained in:
parent
5c6a19d8ef
commit
e728016277
@ -243,12 +243,13 @@
|
||||
stream_wrapper_register(vfs_stream_wrapper::SCHEME, 'vfs_stream_wrapper', STREAM_IS_URL);
|
||||
}
|
||||
|
||||
if ($data['type'] == 'import' && !is_readable($data['target']))
|
||||
if ($data['type'] == 'import' && ($scheme == egw_vfs::SCHEME && !egw_vfs::is_readable($data['target']) ||
|
||||
$scheme != egw_vfs::SCHEME && !is_readable($data['target'])))
|
||||
{
|
||||
return $data['target']. ' is not readable';
|
||||
return lang('%1 is not readable',$data['target']);
|
||||
}
|
||||
elseif ($data['type'] == 'export' && !self::is__writable($data['target'])) {
|
||||
return $data['target']. ' is not writable';
|
||||
return lang('%1 is not writable',$data['target']);
|
||||
}
|
||||
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user