Fix for php8 when symlink function is disabled

main
Michael Voříšek 4 years ago committed by GitHub
parent 0da9e216fc
commit e712130062
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save