mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-12 08:58:30 +01:00
* fixed not working scheduled import from vfs
This commit is contained in:
parent
38f301e681
commit
10c01f15eb
@ -243,12 +243,13 @@
|
|||||||
stream_wrapper_register(vfs_stream_wrapper::SCHEME, 'vfs_stream_wrapper', STREAM_IS_URL);
|
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'])) {
|
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;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user