//small check
This commit is contained in:
+7
-3
@@ -634,7 +634,9 @@ class ToolsCore
|
|||||||
{
|
{
|
||||||
$dirname = rtrim($dirname, '/').'/';
|
$dirname = rtrim($dirname, '/').'/';
|
||||||
$files = scandir($dirname);
|
$files = scandir($dirname);
|
||||||
foreach ($files as $file)
|
if (is_dir($dirname))
|
||||||
|
{
|
||||||
|
foreach ($files as $file)
|
||||||
if ($file != '.' && $file != '..' && $file != '.svn')
|
if ($file != '.' && $file != '..' && $file != '.svn')
|
||||||
{
|
{
|
||||||
if (is_dir($dirname.$file))
|
if (is_dir($dirname.$file))
|
||||||
@@ -642,8 +644,10 @@ class ToolsCore
|
|||||||
elseif (file_exists($dirname.$file))
|
elseif (file_exists($dirname.$file))
|
||||||
unlink($dirname.$file);
|
unlink($dirname.$file);
|
||||||
}
|
}
|
||||||
if ($delete_self)
|
if ($delete_self)
|
||||||
rmdir($dirname);
|
rmdir($dirname);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user