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:
Matt Pass
2014-06-25 12:49:29 +01:00
parent a55102106e
commit b0fd03f571

View File

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