Skip to content

Commit

Permalink
Fix missing default template
Browse files Browse the repository at this point in the history
  • Loading branch information
SMillerDev committed Oct 31, 2016
1 parent 776f334 commit baef0a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
<fileset dir="${basedir}/src/">
<exclude name="**/*Test.php*"/>
<include name="**/*.php"/>
<include name="**/*.phtml"/>
<include name="**/*.js*"/>
<include name="**/*.css*"/>
</fileset>
Expand Down
2 changes: 1 addition & 1 deletion src/PHPDraft/Out/TemplateGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public function get($object)
}

if (stream_resolve_include_path($this->template . '.phtml')) {
$include = $this->template . '.php';
$include = $this->template . '.phtml';
}

if (stream_resolve_include_path('PHPDraft/Out/HTML/' . $this->template . '.phtml')) {
Expand Down

0 comments on commit baef0a2

Please sign in to comment.