mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-14 21:30:17 +08:00
pull origin
This commit is contained in:
@@ -29,7 +29,7 @@ class AppController extends Controller
|
||||
*/
|
||||
protected function unlink($file)
|
||||
{
|
||||
if (is_dir($file) && strncasecmp(PHP_OS, 'WIN', 3) === 0) {
|
||||
if (is_dir($file) && DIRECTORY_SEPARATOR === '\\') {
|
||||
rmdir($file);
|
||||
} else {
|
||||
unlink($file);
|
||||
|
||||
Reference in New Issue
Block a user