BUG 8856 "Migrate the Clear cache Interface from master bra.." UPDATED
- problem when files aren't found - fixed problem on G::rm_dir()
This commit is contained in:
@@ -570,20 +570,15 @@ class G
|
||||
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN')
|
||||
exec('DEL /F /S /Q %' . $dirName . '%', $res);
|
||||
else
|
||||
rmdir($file);
|
||||
@rmdir($file);
|
||||
}
|
||||
else {
|
||||
unlink($file);
|
||||
@unlink($file);
|
||||
}
|
||||
}
|
||||
|
||||
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN')
|
||||
exec('DEL /F /S /Q %' . $dirName . '%', $res);
|
||||
else
|
||||
rmdir($file);
|
||||
}
|
||||
else {
|
||||
unlink($dirName);
|
||||
@unlink($dirName);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user