Skip to content

Commit

Permalink
Fix problem using smarty-3.1.28 or later
Browse files Browse the repository at this point in the history
  • Loading branch information
hayakawa committed Jan 12, 2016
1 parent 424ab02 commit b21de4a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions risoluto/lib/vendor/Risoluto/RisolutoViewTrait.php
Expand Up @@ -81,9 +81,7 @@ private function initTemplate(
$tmpl_path = '',
array $options = [
'cache' => [
'mode' => \Smarty::CACHING_LIFETIME_SAVED,
'lifetime' => 3600,
'modified_check' => true,
],
'compile' => [
'check' => true,
Expand All @@ -104,9 +102,7 @@ private function initTemplate(

//--- テンプレートキャッシュの設定
$tmpl->setCacheDir( RISOLUTO_CACHE );
$tmpl->caching = ( isset( $options[ 'cache' ][ 'mode' ] ) ? $options[ 'cache' ][ 'mode' ] : \Smarty::CACHING_LIFETIME_SAVED );
$tmpl->cache_lifetime = ( isset( $options[ 'cache' ][ 'lifetime' ] ) ? $options[ 'cache' ][ 'lifetime' ] : 3600 );
$tmpl->cache_modified_check = ( isset( $options[ 'cache' ][ 'modified_check' ] ) ? $options[ 'cache' ][ 'modified_check' ] : true );

//--- コンパイル済みテンプレートの設定
$tmpl->setCompileDir( RISOLUTO_CACHE );
Expand Down

0 comments on commit b21de4a

Please sign in to comment.