mirror of
https://github.com/getgrav/grav.git
synced 2025-02-20 19:56:53 +01:00
Removed is_file check on the else statement as files with no extensions aren't recognized as files by PHP, preventing .htaccess or LICENSE to get copied over
This commit is contained in:
parent
3d983d8377
commit
d18f0bf751
|
|
@ -150,10 +150,8 @@ class Installer
|
|||
}
|
||||
}
|
||||
} else {
|
||||
if (is_file($path)) {
|
||||
@unlink($path);
|
||||
@copy($tmp . DS . $filename, $path);
|
||||
}
|
||||
@unlink($path);
|
||||
@copy($tmp . DS . $filename, $path);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user