소스 검색

Fix build - explicit config key check

Amit Snyderman 12 년 전
부모
커밋
3e876fd984
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      src/Mustache/Engine.php

+ 4 - 1
src/Mustache/Engine.php

@@ -116,9 +116,12 @@ class Mustache_Engine
         if (isset($options['cacher'])) {
             $this->cache = $options['cacher'];
         } else if (isset($options['cache'])) {
+            $cacheFileMode = isset($options['cache_file_mode'])
+                ? $options['cache_file_mode']
+                : null;
             $this->cache = new Mustache_Cache_FilesystemCache(
                 $options['cache'],
-                $options['cache_file_mode']
+                $cacheFileMode
             );
         }