Commit aff13821 by Alexander Makarov

Fixes broken app/link under non-Windows

parent 28a95f9a
......@@ -29,7 +29,7 @@ class AppController extends Controller
*/
protected function unlink($file)
{
if (is_dir($file)) {
if (is_dir($file) && strncasecmp(PHP_OS, 'WIN', 3) === 0) {
rmdir($file);
} else {
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