mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-11 12:11:19 +00:00
- fixed recursive call of removeDir() and copyDir()
This commit is contained in:
parent
957b13d84f
commit
6bb0bf3382
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue
Block a user