Skip to content
This repository has been archived by the owner on Dec 25, 2018. It is now read-only.

Commit

Permalink
Merge pull request #42 from electromuis/master
Browse files Browse the repository at this point in the history
Autoloading fix
  • Loading branch information
helios-ag committed Mar 4, 2016
2 parents 1117919 + 38609e9 commit 4a2098e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Driver/ElFinderVolumeDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 4a2098e

Please sign in to comment.