forked from extern/egroupware
Addressbook - Fix scheduled export of vcard caused 2 files with the same name in vfs
This commit is contained in:
parent
203fa8a9be
commit
4bbfe978dd
@ -72,11 +72,13 @@ class addressbook_export_vcard implements importexport_iface_export_plugin {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// vCard opens & closes the resource itself, but this doesn't seem to matter
|
// vCard opens & closes the file itself, so we can't just pass in the stream
|
||||||
$meta = stream_get_meta_data($_stream);
|
$fp = tempnam($GLOBALS['egw_info']['server']['temp_dir'], 'egw');
|
||||||
|
|
||||||
$vcard = new addressbook_vcal('addressbook','text/vcard');
|
$vcard = new addressbook_vcal('addressbook','text/vcard');
|
||||||
$vcard->export($this->selection, $meta['uri']);
|
$vcard->export($this->selection, $fp);
|
||||||
|
|
||||||
|
fwrite($_stream, file_get_contents($fp));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user