diff --git a/src/Driver/ElFinderVolumeDriver.php b/src/Driver/ElFinderVolumeDriver.php index 1069e3d..682a2f4 100644 --- a/src/Driver/ElFinderVolumeDriver.php +++ b/src/Driver/ElFinderVolumeDriver.php @@ -4813,8 +4813,8 @@ protected function unpackArchive($path, $arc, $remove = true) { protected static function zipArchiveZip($dir, $files, $zipPath) { try { if ($start = is_string($zipPath)) { - $zip = new ZipArchive(); - if ($zip->open($dir . DIRECTORY_SEPARATOR . $zipPath, ZipArchive::CREATE) !== true) { + $zip = new \ZipArchive(); + if ($zip->open($dir . DIRECTORY_SEPARATOR . $zipPath, \ZipArchive::CREATE) !== true) { $zip = false; } } else { @@ -4859,7 +4859,7 @@ protected static function zipArchiveZip($dir, $files, $zipPath) { */ protected static function zipArchiveUnzip($zipPath, $toDir) { try { - $zip = new ZipArchive(); + $zip = new \ZipArchive(); if ($zip->open($zipPath) === true) { $zip->extractTo($toDir); $zip->close();