From 6bb0bf33829c9ea431326bfa15f01ce7a04c5744 Mon Sep 17 00:00:00 2001 From: steinm Date: Tue, 20 Dec 2011 07:41:13 +0000 Subject: [PATCH] - fixed recursive call of removeDir() and copyDir() --- LetoDMS_Core/Core/inc.FileUtils.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LetoDMS_Core/Core/inc.FileUtils.php b/LetoDMS_Core/Core/inc.FileUtils.php index 94b412f0e..521cf56a9 100644 --- a/LetoDMS_Core/Core/inc.FileUtils.php +++ b/LetoDMS_Core/Core/inc.FileUtils.php @@ -110,7 +110,7 @@ class LetoDMS_Core_File { continue; else if (is_dir($path . $entry)) { - if (!removeDir($path . $entry . "/")) + if (!self::removeDir($path . $entry . "/")) return false; } else @@ -130,7 +130,7 @@ class LetoDMS_Core_File { if ($entry == ".." || $entry == ".") continue; else if (is_dir($sourcePath . $entry)) { - if (!copyDir($sourcePath . $entry . "/", $targetPath . $entry . "/")) + if (!self::copyDir($sourcePath . $entry . "/", $targetPath . $entry . "/")) return false; } else { if (!@copy($sourcePath . $entry, $targetPath . $entry))