* Calendar/ImportExport: fix PHP Fatal error when importing

This commit is contained in:
Ralf Becker 2016-06-21 16:21:19 +02:00
parent fdf515f84a
commit b4d8b9e747

View File

@ -102,7 +102,7 @@ use EGroupware\Api\Etemplate;
// Destination if we need to hold the file // Destination if we need to hold the file
if($file) if($file)
{ {
$cachefile = new egw_cache_files(array()); $cachefile = new Api\Cache\Files(array());
$dst_file = $cachefile->filename(Api\Cache::keys(Api\Cache::INSTANCE, 'importexport', $dst_file = $cachefile->filename(Api\Cache::keys(Api\Cache::INSTANCE, 'importexport',
'import_'.md5($content['file']['name'].$GLOBALS['egw_info']['user']['account_id']), true),true); 'import_'.md5($content['file']['name'].$GLOBALS['egw_info']['user']['account_id']), true),true);
// Keep file // Keep file