Commit b014489b by Alexander Makarov

Better Windows unlink as suggested by @cebe

parent aff13821
...@@ -29,7 +29,7 @@ class AppController extends Controller ...@@ -29,7 +29,7 @@ class AppController extends Controller
*/ */
protected function unlink($file) protected function unlink($file)
{ {
if (is_dir($file) && strncasecmp(PHP_OS, 'WIN', 3) === 0) { if (is_dir($file) && !is_link($file)) {
rmdir($file); rmdir($file);
} else { } else {
unlink($file); unlink($file);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment