* fixed not working scheduled import from vfs

This commit is contained in:
Ralf Becker 2011-03-11 16:03:08 +00:00
parent 49909211f1
commit ed60695cd5
2 changed files with 7 additions and 3 deletions

View File

@ -248,12 +248,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;

View File

@ -9,6 +9,9 @@
* @version $Id$
*/
// RB: never install by default, only via setup
$setup_info['importexport']['only_db'] = array('never');
$setup_info['importexport']['name'] = 'importexport';
$setup_info['importexport']['version'] = '1.9.001';
$setup_info['importexport']['app_order'] = 2;