From 097423136c1b9be70f77630781b522863f715436 Mon Sep 17 00:00:00 2001 From: Tom N Harris Date: Tue, 26 Feb 2008 01:52:22 +0100 Subject: Don't depend on plugin for Zip/TarLib darcs-hash:20080226005222-6942e-20808aa2678aec95a22c93fce81c1f822975493d.gz --- inc/ZipLib.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'inc/ZipLib.class.php') 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 -- cgit v1.2.3