Fix for php8 when symlink function is disabled
parent
0da9e216fc
commit
e712130062
|
@ -601,7 +601,12 @@ class Filesystem
|
|||
|
||||
$relativePath = $this->findShortestPath($link, $target);
|
||||
chdir(\dirname($link));
|
||||
$result = @symlink($relativePath, $link);
|
||||
|
||||
if (function_exists('symlink')) {
|
||||
$result = @symlink($relativePath, $link);
|
||||
} else {
|
||||
$result = false;
|
||||
}
|
||||
|
||||
chdir($cwd);
|
||||
|
||||
|
|
Loading…
Reference in New Issue