diff options
author | Elan Ruusamäe <glen@delfi.ee> | 2013-01-23 13:55:25 +0200 |
---|---|---|
committer | Elan Ruusamäe <glen@delfi.ee> | 2013-01-23 13:57:31 +0200 |
commit | f2cb3ec76dec3fe2b40f25765ef842223c7132fe (patch) | |
tree | d37d48bcabfc2e3415650ebd7f08dd2c739179f2 /lib/plugins/plugin/classes | |
parent | fb83d19fe0215e7fa5e71a1ab713342e8f84d9d1 (diff) | |
download | rpg-f2cb3ec76dec3fe2b40f25765ef842223c7132fe.tar.gz rpg-f2cb3ec76dec3fe2b40f25765ef842223c7132fe.tar.bz2 |
handle bzip1 as well
in fact .tbz is tar.bz (bzip1) and .tbz2 is what tar.bz2 is used
commonly.
Diffstat (limited to 'lib/plugins/plugin/classes')
-rw-r--r-- | lib/plugins/plugin/classes/ap_download.class.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/plugins/plugin/classes/ap_download.class.php b/lib/plugins/plugin/classes/ap_download.class.php index 3cc455867..e13d1b8f2 100644 --- a/lib/plugins/plugin/classes/ap_download.class.php +++ b/lib/plugins/plugin/classes/ap_download.class.php @@ -195,7 +195,7 @@ class ap_download extends ap_manage { if (substr($target, -1) == "/") $target = substr($target, 0, -1); $ext = $this->guess_archive($file); - if (in_array($ext, array('tar','bz','gz'))) { + if (in_array($ext, array('tar','bz','bz2','gz'))) { switch($ext){ case 'bz': $compress_type = Tar::COMPRESS_BZIP; |