* fixed not working scheduled import from vfs

This commit is contained in:
Ralf Becker 2011-03-11 16:06:24 +00:00
parent 38f301e681
commit 10c01f15eb

View File

@ -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;