From 481803ac3bc87cfef61bfb715934df6983d2ffa5 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 27 Jan 2015 17:09:00 +0000 Subject: [PATCH] fix PHP Fatal error: Class "EGroupware\Api\ZipArchive" not found --- api/src/Vfs.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/src/Vfs.php b/api/src/Vfs.php index bfe0ab9523..ae2de39a62 100644 --- a/api/src/Vfs.php +++ b/api/src/Vfs.php @@ -1411,13 +1411,13 @@ class Vfs extends Vfs\StreamWrapper */ public static function download_zip(Array $_files, $name = false) { - error_log(__METHOD__ . ': '.implode(',',$_files)); + //error_log(__METHOD__ . ': '.implode(',',$_files)); // Create zip file $zip_file = tempnam($GLOBALS['egw_info']['server']['temp_dir'], 'zip'); - $zip = new ZipArchive(); - if (!$zip->open($zip_file, ZipArchive::OVERWRITE)) + $zip = new \ZipArchive(); + if (!$zip->open($zip_file, \ZipArchive::OVERWRITE)) { throw new egw_exception("Cannot open zip file for writing."); }