Permalink
Browse files

Use serialize instead of implode to create the md5 of the cache filename

  • Loading branch information...
1 parent 5140835 commit 12d92a30e55c89aaa8e00e6d1b709cea500838de @feulf committed Feb 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 inc/rain.tpl.class.php
View
@@ -259,7 +259,7 @@ protected function check_template( $tpl_name ){
$tpl_basedir = strpos($tpl_name,"/") ? dirname($tpl_name) . '/' : null; // template basedirectory
$tpl_dir = self::$tpl_dir . $tpl_basedir; // template directory
$this->tpl['tpl_filename'] = $tpl_dir . $tpl_basename . '.' . self::$tpl_ext; // template filename
- $temp_compiled_filename = self::$cache_dir . $tpl_basename . "." . md5( $tpl_dir . implode('', self::$config_name_sum));
+ $temp_compiled_filename = self::$cache_dir . $tpl_basename . "." . md5( $tpl_dir . serialize(self::$config_name_sum));
$this->tpl['compiled_filename'] = $temp_compiled_filename . '.rtpl.php'; // cache filename
$this->tpl['cache_filename'] = $temp_compiled_filename . '.s_' . $this->cache_id . '.rtpl.php'; // static cache filename

0 comments on commit 12d92a3

Please sign in to comment.