summaryrefslogtreecommitdiff
path: root/lib/plugins
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2013-01-23 06:56:09 -0800
committerAndreas Gohr <andi@splitbrain.org>2013-01-23 06:56:09 -0800
commitd0cf0750a5e3c0dba2eb161ce81fdca331494e6e (patch)
tree7c44c9a8a22da320fbb3a6991b28a16cfa347bd7 /lib/plugins
parentc68b2443b0ead0841bd063634f31abc677487ffa (diff)
parentf2cb3ec76dec3fe2b40f25765ef842223c7132fe (diff)
downloadrpg-d0cf0750a5e3c0dba2eb161ce81fdca331494e6e.tar.gz
rpg-d0cf0750a5e3c0dba2eb161ce81fdca331494e6e.tar.bz2
Merge pull request #162 from glensc/bz-bz2
handle bz (bzip not bzip2) better
Diffstat (limited to 'lib/plugins')
-rw-r--r--lib/plugins/plugin/classes/ap_download.class.php2
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;