NEW Allow files to have a .tmpl extension which is stripped
This commit is contained in:
parent
3e16a5b138
commit
0d4b4cf0e5
|
@ -44,6 +44,10 @@ class RecipeInstaller extends LibraryInstaller {
|
|||
$any = false;
|
||||
foreach($fileIterator as $path => $info) {
|
||||
$destination = $destinationRoot . substr($path, strlen($sourceRoot));
|
||||
$extension = pathinfo($destination, PATHINFO_EXTENSION);
|
||||
if ($extension === 'tmpl') {
|
||||
$destination = substr($destination, -5);
|
||||
}
|
||||
$relativePath = substr($path, strlen($sourceRoot) + 1); // Name path without leading '/'
|
||||
|
||||
// Write header
|
||||
|
|
Loading…
Reference in New Issue