From d18f0bf7517eeee65b682e877232d49553be019d Mon Sep 17 00:00:00 2001 From: Djamil Legato Date: Mon, 13 Oct 2014 14:24:55 -0700 Subject: [PATCH] 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 --- system/src/Grav/Common/GPM/Installer.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/system/src/Grav/Common/GPM/Installer.php b/system/src/Grav/Common/GPM/Installer.php index dc2d563c2..36cce7867 100644 --- a/system/src/Grav/Common/GPM/Installer.php +++ b/system/src/Grav/Common/GPM/Installer.php @@ -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); } } }