diff options
author | Christopher Smith <chris@jalakai.co.uk> | 2010-03-16 11:20:53 +0000 |
---|---|---|
committer | Christopher Smith <chris@jalakai.co.uk> | 2010-03-16 11:20:53 +0000 |
commit | e0415e22d2d7d48385734c5c4a8e1770c36426c9 (patch) | |
tree | 39fdf9fd621794070593a6759a5944e9eab64855 /lib/plugins/plugin/classes/ap_download.class.php | |
parent | a2ea2dc1716c55791173d806d9a78c96846c72b8 (diff) | |
download | rpg-e0415e22d2d7d48385734c5c4a8e1770c36426c9.tar.gz rpg-e0415e22d2d7d48385734c5c4a8e1770c36426c9.tar.bz2 |
Make constants in TarLib.class.php class constants
The constants are required by the class constructor, which effectively
means before the autoloader is triggered. This change fixes that issue.
Diffstat (limited to 'lib/plugins/plugin/classes/ap_download.class.php')
-rw-r--r-- | lib/plugins/plugin/classes/ap_download.class.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/plugins/plugin/classes/ap_download.class.php b/lib/plugins/plugin/classes/ap_download.class.php index 6ad048d72..beba0ab07 100644 --- a/lib/plugins/plugin/classes/ap_download.class.php +++ b/lib/plugins/plugin/classes/ap_download.class.php @@ -199,13 +199,13 @@ class ap_download extends ap_manage { if (in_array($ext, array('tar','bz','gz'))) { switch($ext){ case 'bz': - $compress_type = COMPRESS_BZIP; + $compress_type = TarLib::COMPRESS_BZIP; break; case 'gz': - $compress_type = COMPRESS_GZIP; + $compress_type = TarLib::COMPRESS_GZIP; break; default: - $compress_type = COMPRESS_NONE; + $compress_type = TarLib::COMPRESS_NONE; } $tar = new TarLib($file, $compress_type); @@ -215,7 +215,7 @@ class ap_download extends ap_manage { } return false; } - $ok = $tar->Extract(FULL_ARCHIVE, $target, '', 0777); + $ok = $tar->Extract(TarLib::FULL_ARCHIVE, $target, '', 0777); if($ok<1){ if($conf['allowdebug']){ |