mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +01:00
Check for dry-run, or it will always import. No preview though.
This commit is contained in:
parent
f25232ad32
commit
dacf0706a3
@ -125,6 +125,12 @@ class calendar_import_ical implements importexport_iface_import_plugin {
|
||||
|
||||
$calendar_ical = new calendar_ical;
|
||||
$calendar_ical->setSupportedFields('file', '');
|
||||
if($this->dry_run)
|
||||
{
|
||||
// No real dry run for iCal
|
||||
echo lang("No preview for iCal");
|
||||
return;
|
||||
}
|
||||
if (!$calendar_ical->importVCal(stream_get_contents($_stream), -1,null,false,0,'',null,null,null,$_definition->plugin_options['no_notification']))
|
||||
{
|
||||
$this->errors[] = lang('Error: importing the iCal');
|
||||
|
Loading…
Reference in New Issue
Block a user