- fixed recursive call of removeDir() and copyDir()

This commit is contained in:
steinm 2011-12-20 07:41:13 +00:00
parent 957b13d84f
commit 6bb0bf3382

View File

@ -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))