Skip to content

Commit

Permalink
some extra checks to ease backwards compat
Browse files Browse the repository at this point in the history
  • Loading branch information
jarednova committed Oct 23, 2013
1 parent d6235be commit 1356077
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion timber.php
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,9 @@ public static function compile($filenames, $data = array(), $expires = false, $c
public static function render($filenames, $data = array(), $expires = false, $cache_mode = TimberLoader::CACHE_USE_DEFAULT) {
if ($expires === true){
//if this is reading as true; the user probably is using the old $echo param
$expires = false;
//so we should move all vars up by a spot
$expires = $cache_mode;
$cache_mode = TimberLoader::CACHE_USE_DEFAULT;
}
$output = self::compile($filenames, $data, $expires, $cache_mode, true);
echo $output;
Expand Down

0 comments on commit 1356077

Please sign in to comment.