Avoid exporting git files

d6
Svein-Tore Griff With 2015-02-18 19:50:23 +01:00
parent c7c46bc779
commit 3d4d72c5a7
1 changed files with 1 additions and 1 deletions

View File

@ -1988,7 +1988,7 @@ class H5PCore {
@mkdir($destination);
while (false !== ($file = readdir($dir))) {
if (($file != '.') && ($file != '..')) {
if (($file != '.') && ($file != '..') && $file != '.git' && $file != '.gitignore') {
if (is_dir($source . DIRECTORY_SEPARATOR . $file)) {
$this->copyFileTree($source . DIRECTORY_SEPARATOR . $file, $destination . DIRECTORY_SEPARATOR . $file);
}