Skip to content

Commit

Permalink
Modify foil rendering template locations
Browse files Browse the repository at this point in the history
  • Loading branch information
Hnto committed Jun 27, 2019
1 parent db89466 commit a873f03
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions build/scripts/php/create-template-folder.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<?php
$renderingJsonFile = getcwd() . '/settings/Rendering/rendering.json';

$appDir = getcwd();

$unit = $argv[1];

if (!is_dir(getcwd() . '/Units')) {
Expand Down Expand Up @@ -44,7 +42,7 @@

$newFolders = array_merge(
$renderingRoot['engines'][$default]['folders'],
[$unit => $appDir . '/Units/' . $unit . '/Templates']
[$unit => 'Units/' . $unit . '/Templates']
);

$renderingRoot['engines'][$default]['folders'] = $newFolders;
Expand Down

0 comments on commit a873f03

Please sign in to comment.