mirror of
https://github.com/smarty-php/smarty.git
synced 2025-11-02 21:31:48 +01:00
- 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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user