mirror of
https://github.com/silverstripe/recipe-plugin.git
synced 2024-10-22 14:05:55 +02:00
Change file copy to use copy() method
This commit is contained in:
parent
c6e9375b8c
commit
5f82035219
@ -59,7 +59,7 @@ class RecipeInstaller extends LibraryInstaller {
|
||||
}
|
||||
$this->io->write("Installing recipe <info>$recipe</info> file <info>$relativePath</info>");
|
||||
$this->filesystem->ensureDirectoryExists(dirname($destination));
|
||||
file_put_contents($destination, file_get_contents($path));
|
||||
copy($path, $destination);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user