Преглед на файлове

[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)
     {