summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom N Harris <tnharris@whoopdedo.org>2008-02-26 01:52:22 +0100
committerTom N Harris <tnharris@whoopdedo.org>2008-02-26 01:52:22 +0100
commit097423136c1b9be70f77630781b522863f715436 (patch)
treeaea0000846320a30ab6a5b9c16abd5e62e8a8192
parent33a148e0f7688489ba9900abb450364586a68cdb (diff)
downloadrpg-097423136c1b9be70f77630781b522863f715436.tar.gz
rpg-097423136c1b9be70f77630781b522863f715436.tar.bz2
Don't depend on plugin for Zip/TarLib
darcs-hash:20080226005222-6942e-20808aa2678aec95a22c93fce81c1f822975493d.gz
-rw-r--r--inc/TarLib.class.php2
-rw-r--r--inc/ZipLib.class.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/inc/TarLib.class.php b/inc/TarLib.class.php
index 81ba1f322..5219c4391 100644
--- a/inc/TarLib.class.php
+++ b/inc/TarLib.class.php
@@ -895,7 +895,7 @@ $p_add, $p_rem);
function _dirApp($d)
{
// map to dokuwiki function (its more robust)
- return ap_mkdir($d);
+ return io_mkdir_p($d);
/*
$d = explode('/', $d);
$base = '';
diff --git a/inc/ZipLib.class.php b/inc/ZipLib.class.php
index 84164dd4a..cb1a26e75 100644
--- a/inc/ZipLib.class.php
+++ b/inc/ZipLib.class.php
@@ -140,7 +140,7 @@ class ZipLib
function Extract ( $zn, $to, $index = Array(-1) )
{
- if(!@is_dir($to)) @mkdir($to,0777);
+ if(!@is_dir($to)) $this->_mkdir($to);
$ok = 0; $zip = @fopen($zn,'rb');
if(!$zip) return(-1);
$cdir = $this->ReadCentralDir($zip,$zn);
@@ -346,7 +346,7 @@ class ZipLib
//--CS start
// centralize mkdir calls and use dokuwiki io functions
function _mkdir($d) {
- return ap_mkdir($d);
+ return io_mkdir_p($d);
}
//--CS end