Merge branch 'cyy_16738' into 'master'

* Fix bug #16738.

See merge request easycorp/zentaopms!2993
This commit is contained in:
李玉春
2022-04-18 07:55:20 +00:00
+1 -1
View File
@@ -617,7 +617,7 @@ class extensionModel extends model
foreach($dirs as $dir)
{
if(!is_dir($appRoot . $dir)) continue;
if(!rmdir($appRoot . $dir)) $removeCommands[] = "rmdir $appRoot$dir"; // fix bug #2965
if(!rmdir($appRoot . $dir)) $removeCommands[] = PHP_OS == 'Linux' ? "rm -fr $appRoot$dir" : "rmdir $appRoot$dir /s /q";
}
}