Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
vlmaksime committed Mar 29, 2015
1 parent 4c74cbc commit 91da1cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inc/rain.tpl.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -281,12 +281,12 @@ protected function check_template( $tpl_name ){

// We check if the template is not an external source
if(preg_match('/http/', $tpl_name)){
$this->compileFile('', '', $tpl_name, self::$cache_dir, $this->tpl['compiled_filename'] );
$this->compileFile('', '', $tpl_name, self::$root_dir . self::$cache_dir, $this->tpl['compiled_filename'] );
return true;
}
// file doesn't exist, or the template was updated, Rain will compile the template
elseif( !file_exists( $this->tpl['compiled_filename'] ) || ( self::$check_template_update && filemtime($this->tpl['compiled_filename']) < filemtime( $this->tpl['tpl_filename'] ) ) ){
$this->compileFile( $tpl_basename, $tpl_basedir, $this->tpl['tpl_filename'], self::$cache_dir, $this->tpl['compiled_filename'] );
$this->compileFile( $tpl_basename, $tpl_basedir, $this->tpl['tpl_filename'], self::$root_dir . self::$cache_dir, $this->tpl['compiled_filename'] );
return true;
}

Expand Down

0 comments on commit 91da1cd

Please sign in to comment.