mirror of
https://github.com/smarty-php/smarty.git
synced 2026-04-29 02:03:31 +02:00
- bugfix using nocache like attribute with value true like {plugin nocache=true} did not work https://github.com/smarty-php/smarty/issues/285
This commit is contained in:
@@ -513,12 +513,12 @@ abstract class Smarty_Internal_TemplateCompilerBase
|
||||
// check nocache option flag
|
||||
foreach ($args as $arg) {
|
||||
if (!is_array($arg)) {
|
||||
if ($arg == "'nocache'") {
|
||||
if ($arg === "'nocache'" || $arg === 'nocache') {
|
||||
$this->tag_nocache = true;
|
||||
}
|
||||
} else {
|
||||
foreach ($arg as $k => $v) {
|
||||
if ($k == "'nocache'" && (trim($v, "'\" ") == 'true')) {
|
||||
if (($k === "'nocache'" || $k === 'nocache') && (trim($v, "'\" ") == 'true')) {
|
||||
$this->tag_nocache = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user