Explorar o código

[Templating] fixed CacheLoader when more options are given

Fabien Potencier %!s(int64=15) %!d(string=hai) anos
pai
achega
6ef1f07729
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)
     {