Skip to content

Commit

Permalink
Merge pull request #2 from kevinsmith/patch-1
Browse files Browse the repository at this point in the history
Fix a bug where template group names ending in anything from the character set "group" are mangled.
  • Loading branch information
tjdraper committed Mar 18, 2016
2 parents 8d0f108 + ee88f0b commit 91946ea
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ public function getFileTemplates()

foreach ($templateGroups as $templateGroup) {
// Get the name of the template group
$templateGroupName = rtrim($templateGroup, '.group');
$pathInf = pathinfo($templateGroup);
$templateGroupName = $pathInf['filename'];

// Write an index template if it does not exist
if (! file_exists($path . $templateGroup . '/index.html')) {
Expand Down Expand Up @@ -126,4 +127,4 @@ public function dirArray($path, $dirOnly = false)

return array_values($dir);
}
}
}

0 comments on commit 91946ea

Please sign in to comment.