Skip to content

Commit

Permalink
auto add suffix to (short) template name
Browse files Browse the repository at this point in the history
  • Loading branch information
remicollet committed Aug 12, 2016
1 parent 6ea6a02 commit ecda8a3
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 ecda8a3

Please sign in to comment.