diff options
author | Andreas Gohr <andi@splitbrain.org> | 2006-11-18 17:12:42 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2006-11-18 17:12:42 +0100 |
commit | afe99d0069da42f65e958174bf6d68e66eee5c41 (patch) | |
tree | 6a67d65048c318a51f70666703f7ecb84b3bc343 /lib/plugins/plugin/inc | |
parent | fea34fed52358c2813dfffc0628f3d44c7fcb4f0 (diff) | |
download | rpg-afe99d0069da42f65e958174bf6d68e66eee5c41.tar.gz rpg-afe99d0069da42f65e958174bf6d68e66eee5c41.tar.bz2 |
renamed tar and zip libraries in plugin manager #974
The zip class was renamed to avoid name clashes with a certain PHP extension
the tar lib was renamed to make it match the zip naming ;-)
darcs-hash:20061118161242-7ad00-c50173d8b240d81455b48d2904c353c3e7e4a9a0.gz
Diffstat (limited to 'lib/plugins/plugin/inc')
-rw-r--r-- | lib/plugins/plugin/inc/TarLib.class.php (renamed from lib/plugins/plugin/inc/tarlib.class.php) | 6 | ||||
-rw-r--r-- | lib/plugins/plugin/inc/ZipLib.class.php (renamed from lib/plugins/plugin/inc/zip.lib.php) | 3 |
2 files changed, 4 insertions, 5 deletions
diff --git a/lib/plugins/plugin/inc/tarlib.class.php b/lib/plugins/plugin/inc/TarLib.class.php index 65cca9181..270b6e7b6 100644 --- a/lib/plugins/plugin/inc/tarlib.class.php +++ b/lib/plugins/plugin/inc/TarLib.class.php @@ -27,7 +27,7 @@ define('ARCHIVE_DYNAMIC',0); define('ARCHIVE_RENAMECOMP',5); define('COMPRESS_DETECT',-1); -class CompTar +class TarLib { var $_comptype; var $_compzlevel; @@ -36,7 +36,7 @@ class CompTar var $_nomf; var $_result; - function CompTar($p_filen = ARCHIVE_DYNAMIC , $p_comptype = COMPRESS_AUTO, $p_complevel = 9) + function tarlib($p_filen = ARCHIVE_DYNAMIC , $p_comptype = COMPRESS_AUTO, $p_complevel = 9) { $this->_nomf = $p_filen; $flag=0; if($p_comptype && $p_comptype % 5 == 0){$p_comptype /= ARCHIVE_RENAMECOMP; $flag=1;} @@ -85,7 +85,7 @@ class CompTar function setArchive($p_name='', $p_comp = COMPRESS_AUTO, $p_level=9) { $this->_CompTar(); - $this->CompTar($p_name, $p_comp, $p_level); + $this->TarLib($p_name, $p_comp, $p_level); return $this->_result; } diff --git a/lib/plugins/plugin/inc/zip.lib.php b/lib/plugins/plugin/inc/ZipLib.class.php index 351b68e70..767d324a9 100644 --- a/lib/plugins/plugin/inc/zip.lib.php +++ b/lib/plugins/plugin/inc/ZipLib.class.php @@ -8,8 +8,7 @@ * Modified for Dokuwiki * @author Christopher Smith <chris@jalakai.co.uk> */ - -class zip +class ZipLib { var $datasec, $ctrl_dir = array(); |