aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/legacy/archive.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/legacy/archive.php')
-rw-r--r--lib/private/legacy/archive.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/private/legacy/archive.php b/lib/private/legacy/archive.php
index 62512d1448a..aebc586d721 100644
--- a/lib/private/legacy/archive.php
+++ b/lib/private/legacy/archive.php
@@ -28,6 +28,9 @@
*
*/
+use OC\Archive\TAR;
+use OC\Archive\ZIP;
+
abstract class OC_Archive{
/**
* Open any of the supported archive types
@@ -40,11 +43,11 @@ abstract class OC_Archive{
switch($mime) {
case 'application/zip':
- return new OC_Archive_ZIP($path);
+ return new ZIP($path);
case 'application/x-gzip':
- return new OC_Archive_TAR($path);
+ return new TAR($path);
case 'application/x-bzip2':
- return new OC_Archive_TAR($path);
+ return new TAR($path);
}
}