Skip to content
Browse files

Don't depend on plugin for Zip/TarLib

darcs-hash:20080226005222-6942e-20808aa2678aec95a22c93fce81c1f822975493d.gz
  • Loading branch information...
1 parent 33a148e commit 097423136c1b9be70f77630781b522863f715436 @whoopdedo whoopdedo committed Feb 26, 2008
Showing with 3 additions and 3 deletions.
  1. +1 −1 inc/TarLib.class.php
  2. +2 −2 inc/ZipLib.class.php
View
2 inc/TarLib.class.php
@@ -895,7 +895,7 @@ function _extractList($p_to, $p_files, $p_remdir, $p_mode = 0755)
function _dirApp($d)
{
// map to dokuwiki function (its more robust)
- return ap_mkdir($d);
+ return io_mkdir_p($d);
/*
$d = explode('/', $d);
$base = '';
View
4 inc/ZipLib.class.php
@@ -140,7 +140,7 @@ function DosTime() {
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 @@ function ExtractFile($header,$to,$zip)
//--CS start
// centralize mkdir calls and use dokuwiki io functions
function _mkdir($d) {
- return ap_mkdir($d);
+ return io_mkdir_p($d);
}
//--CS end

0 comments on commit 0974231

Please sign in to comment.
Something went wrong with that request. Please try again.