mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +01:00
fix PHP Fatal error: Class "EGroupware\Api\ZipArchive" not found
This commit is contained in:
parent
f834ba893b
commit
481803ac3b
@ -1411,13 +1411,13 @@ class Vfs extends Vfs\StreamWrapper
|
|||||||
*/
|
*/
|
||||||
public static function download_zip(Array $_files, $name = false)
|
public static function download_zip(Array $_files, $name = false)
|
||||||
{
|
{
|
||||||
error_log(__METHOD__ . ': '.implode(',',$_files));
|
//error_log(__METHOD__ . ': '.implode(',',$_files));
|
||||||
|
|
||||||
// Create zip file
|
// Create zip file
|
||||||
$zip_file = tempnam($GLOBALS['egw_info']['server']['temp_dir'], 'zip');
|
$zip_file = tempnam($GLOBALS['egw_info']['server']['temp_dir'], 'zip');
|
||||||
|
|
||||||
$zip = new ZipArchive();
|
$zip = new \ZipArchive();
|
||||||
if (!$zip->open($zip_file, ZipArchive::OVERWRITE))
|
if (!$zip->open($zip_file, \ZipArchive::OVERWRITE))
|
||||||
{
|
{
|
||||||
throw new egw_exception("Cannot open zip file for writing.");
|
throw new egw_exception("Cannot open zip file for writing.");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user