From b4d8b9e747ea39c53b959f34728e15dd5fd178f5 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 21 Jun 2016 16:21:19 +0200 Subject: [PATCH] * Calendar/ImportExport: fix PHP Fatal error when importing --- importexport/inc/class.importexport_import_ui.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/importexport/inc/class.importexport_import_ui.inc.php b/importexport/inc/class.importexport_import_ui.inc.php index ccd6844318..4bae968964 100644 --- a/importexport/inc/class.importexport_import_ui.inc.php +++ b/importexport/inc/class.importexport_import_ui.inc.php @@ -48,7 +48,7 @@ use EGroupware\Api\Etemplate; // We use some inline js in preview results if it fails Api\Header\ContentSecurityPolicy::add('script-src', "unsafe-inline"); - + $template = new Etemplate('importexport.import_dialog'); // Load application's translations @@ -102,7 +102,7 @@ use EGroupware\Api\Etemplate; // Destination if we need to hold the 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', 'import_'.md5($content['file']['name'].$GLOBALS['egw_info']['user']['account_id']), true),true); // Keep file