* Fix bug#35977.

This commit is contained in:
chaideqing
2023-06-19 10:33:30 +08:00
parent 3c4c7313cc
commit 54593e4a42
+1 -1
View File
@@ -444,7 +444,7 @@ class extensionModel extends model
else
{
$parentDir = mb_substr($path, 0, strripos($path, '/'));
if(!is_writable($parentDir))
if(is_dir($parentDir) and !is_writable($parentDir))
{
$checkResult->errors .= sprintf($this->lang->extension->errorTargetPathNotWritable, $path) . '<br />';
$checkResult->chmodCommands .= "sudo chmod -R 777 $path<br />";