- fixed append/prepend attributes in {block} tag

- added  {if  'expression' is in 'array'}  syntax
- use crc32 as hash for compiled config files.
This commit is contained in:
Uwe.Tews
2009-04-14 09:04:15 +00:00
parent 139b3d4570
commit 04fc33b99a
8 changed files with 906 additions and 1120 deletions

View File

@@ -134,7 +134,7 @@ class Smarty_Internal_Config extends Smarty_Internal_Base {
}
public function buildCompiledFilepath()
{
$_filepath = md5($this->config_resource_name);
$_filepath = (string)abs(crc32($this->config_resource_name));
// if use_sub_dirs, break file into directories
if ($this->smarty->use_sub_dirs) {
$_filepath = substr($_filepath, 0, 3) . DIRECTORY_SEPARATOR