diff --git a/inc/functions.php b/inc/functions.php index 6db43ea..fe77ca2 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -53,7 +53,7 @@ function withAssetSuffix(string $file): string */ function symlinkedAssetFolder(string $originDir, string $name): ?string { - // we're using realpath here, otherwise the comparisment with + // we're using realpath here, otherwise the comparison with // readlink will not work. $originDir = realpath($originDir); @@ -74,6 +74,10 @@ function symlinkedAssetFolder(string $originDir, string $name): ?string unlink($targetDir); } + if(!function_exists('symlink')) { + return null; + } + if (!symlink($originDir, $targetDir)) { return null; }