瀏覽代碼

[Templating] fixed CacheLoader when more options are given

Fabien Potencier 15 年之前
父節點
當前提交
6ef1f07729
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Symfony/Components/Templating/Loader/CacheLoader.php

+ 1 - 1
src/Symfony/Components/Templating/Loader/CacheLoader.php

@@ -61,7 +61,7 @@ class CacheLoader extends Loader
   {
     $options = $this->mergeDefaultOptions($options);
 
-    $path = $this->dir.DIRECTORY_SEPARATOR.md5($template.$options['renderer']).'.tpl';
+    $path = $this->dir.DIRECTORY_SEPARATOR.md5($template.serialize($options)).'.tpl';
 
     if ($this->loader instanceof CompilableLoaderInterface)
     {