summaryrefslogtreecommitdiff
path: root/modules/system/system.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/system/system.module')
-rw-r--r--modules/system/system.module17
1 files changed, 11 insertions, 6 deletions
diff --git a/modules/system/system.module b/modules/system/system.module
index 02a5db5fd..28c5340ac 100644
--- a/modules/system/system.module
+++ b/modules/system/system.module
@@ -3539,12 +3539,17 @@ function system_date_format_delete($dfid) {
* Implements hook_archiver_info().
*/
function system_archiver_info() {
- return array(
- 'tar' => array(
- 'class' => 'ArchiverTar',
- 'extensions' => array('tar', 'tar.gz', 'tar.bz2'),
- ),
- );
+ $archivers['tar'] = array(
+ 'class' => 'ArchiverTar',
+ 'extensions' => array('tar', 'tar.gz', 'tar.bz2'),
+ );
+ if (function_exists('zip_open')) {
+ $archivers['zip'] = array(
+ 'class' => 'ArchiverZip',
+ 'extensions' => array('zip'),
+ );
+ }
+ return $archivers;
}
/**