Skip to content

Commit

Permalink
Merge pull request #29 from tinchoz49/master
Browse files Browse the repository at this point in the history
fix include cache
  • Loading branch information
feulf committed Sep 4, 2012
2 parents bad5fa9 + 396c5d1 commit ea42300
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/rain.tpl.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ protected function compileCode( $parsed_code ){

//include
$compiled_code .= '<?php $tpl = new '.get_called_class().';' .
'if( $cache = $tpl->cache( "'.$include_var.'" ) )' .
'if( $cache = $tpl->cache( "'.$include_template.'" ) )' .
' echo $cache;' .
'else{' .
'$tpl->assign( $this->var );' .
Expand Down

0 comments on commit ea42300

Please sign in to comment.