Skip to content

Commit

Permalink
Merge pull request #74 from remicollet/issue-tpl2
Browse files Browse the repository at this point in the history
auto add suffix to (short) template name
  • Loading branch information
theseer authored Aug 12, 2016
2 parents 6ea6a02 + ecda8a3 commit 2dd708e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,10 @@ public function getTemplate() {
if (file_exists($alternative)) {
$template = $alternative;
}
$alternative .= '.php.tpl';
if (file_exists($alternative)) {
$template = $alternative;
}
}
return $template;
}
Expand Down

0 comments on commit 2dd708e

Please sign in to comment.