feulf / raintpl3

The easiest Template Engine for PHP
https://feulf.github.io/raintpl
258 stars 57 forks source link

Ending slash in 'configure' method breaks some options #130

Closed dhardtke closed 10 years ago

dhardtke commented 10 years ago

Hey,

there is a mistake in the Tpl.php, around line 154:

} elseif (substr($value,-1) !== '/') {

this is my fix

} elseif (($setting == "tpl_dir" || $setting == "cache_dir") && substr($value,-1) !== '/') {

Without my fix the option "auto_escape" => false doesn't work for example.

Greetings

feulf commented 10 years ago

I've open a pull request to fix your problem, thanks.