From 10c01f15ebaff45dcc5c747c1168e768c50f74de Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 11 Mar 2011 16:06:24 +0000 Subject: [PATCH] * fixed not working scheduled import from vfs --- importexport/inc/class.importexport_schedule_ui.inc.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/importexport/inc/class.importexport_schedule_ui.inc.php b/importexport/inc/class.importexport_schedule_ui.inc.php index 426a3091da..bb5b58e347 100644 --- a/importexport/inc/class.importexport_schedule_ui.inc.php +++ b/importexport/inc/class.importexport_schedule_ui.inc.php @@ -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;