summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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