From df6ae20b4f60240df1da6b93cd495685d1447276 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 1 Feb 2010 19:14:14 +0000 Subject: - Patch #693082 by dww: added an ArchiverZip class to support .zip files in update manager. --- modules/system/system.module | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'modules/system/system.module') 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; } /** -- cgit v1.2.3