mirror of
https://github.com/icecoder/ICEcoder.git
synced 2026-03-07 09:06:48 +01:00
Don't die if dir isn't deleted
If we fail to rmdir (perhaps a permission problem), don't die. This silently continues and does leave empty folders behind, but stops things from breaking until the solution is really found.
This commit is contained in:
@@ -174,7 +174,7 @@ function deletePlugin($dir) {
|
||||
chdir('.');
|
||||
deletePlugin($dir.$file.'/');
|
||||
if(is_dir($dir.$file)) {
|
||||
rmdir($dir.$file) or DIE("<span style='color: #fff'>couldn't delete dir: $dir$file</span><br />");
|
||||
rmdir($dir.$file);// or DIE("<span style='color: #fff'>couldn't delete dir: $dir$file</span><br />");
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user