* Merge commit: 54593e4a42.

This commit is contained in:
chaideqing
2023-11-08 07:45:50 +00:00
parent ed58f75cf5
commit db95d5eec8
+1 -1
View File
@@ -459,7 +459,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 />";