diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-02-01 19:14:14 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-02-01 19:14:14 +0000 |
commit | df6ae20b4f60240df1da6b93cd495685d1447276 (patch) | |
tree | 1a67ae4f67bc3980020ea9a72d9f4ee6159c64d6 /modules/system/system.module | |
parent | 5c07276020b7be4abd68c18dbdf4c2bf6df259ce (diff) | |
download | brdo-df6ae20b4f60240df1da6b93cd495685d1447276.tar.gz brdo-df6ae20b4f60240df1da6b93cd495685d1447276.tar.bz2 |
- Patch #693082 by dww: added an ArchiverZip class to support .zip files in update manager.
Diffstat (limited to 'modules/system/system.module')
-rw-r--r-- | modules/system/system.module | 17 |
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; } /** |