From 1ffc1f70175a88f176898fd476447e7a15c1aabc Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Mon, 24 Mar 2008 13:47:25 +0000 Subject: Use copy() for Windows where symlink() does not exist --- it_auto_prepend.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'it_auto_prepend.php') diff --git a/it_auto_prepend.php b/it_auto_prepend.php index 0867357..ace84b1 100644 --- a/it_auto_prepend.php +++ b/it_auto_prepend.php @@ -160,7 +160,8 @@ function it_convert($source) if (!$changed) # Link to original file if no changes made { @unlink($converted); - symlink(realpath($source), $converted); + $symlink = function_exists("symlink") ? "symlink" : "copy"; # symlink() does not exist on Windows + $symlink(realpath($source), $converted); } clearstatcache(); -- cgit v1.2.3