mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR: Remove bugfix that is (a) unnessecary because the key is already just sha hashes, underscores and numbers and (b) broken because it strips the open and close quotes from the key
This commit is contained in:
parent
213a08aac7
commit
40ca21e6e5
@ -490,7 +490,6 @@ class SSTemplateParser extends Parser {
|
|||||||
$block = ++$res['subblocks'];
|
$block = ++$res['subblocks'];
|
||||||
// Build the key for this block from the passed cache key, the block index, and the sha hash of the template itself
|
// Build the key for this block from the passed cache key, the block index, and the sha hash of the template itself
|
||||||
$key = "'" . sha1($sub['php']) . (isset($res['key']) && $res['key'] ? "_'.sha1(".$res['key'].")" : "'") . ".'_$block'";
|
$key = "'" . sha1($sub['php']) . (isset($res['key']) && $res['key'] ? "_'.sha1(".$res['key'].")" : "'") . ".'_$block'";
|
||||||
$key = preg_replace('/[^a-zA-Z0-9_]/', '_', $key);
|
|
||||||
// Get any condition
|
// Get any condition
|
||||||
$condition = isset($res['condition']) ? $res['condition'] : '';
|
$condition = isset($res['condition']) ? $res['condition'] : '';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user