mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 02:44:27 +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:
@@ -1,4 +1,7 @@
|
|||||||
===== 3.1.31-dev ===== (xx.xx.xx)
|
===== 3.1.31-dev ===== (xx.xx.xx)
|
||||||
|
07.09.2016
|
||||||
|
- bugfix using nocache like attribute with value true like {plugin nocache=true} did not work https://github.com/smarty-php/smarty/issues/285
|
||||||
|
|
||||||
01.09.2016
|
01.09.2016
|
||||||
- performance require_once should be called only once for shared plugins https://github.com/smarty-php/smarty/issues/280
|
- performance require_once should be called only once for shared plugins https://github.com/smarty-php/smarty/issues/280
|
||||||
|
|
||||||
|
@@ -114,7 +114,7 @@ class Smarty extends Smarty_Internal_TemplateBase
|
|||||||
/**
|
/**
|
||||||
* smarty version
|
* smarty version
|
||||||
*/
|
*/
|
||||||
const SMARTY_VERSION = '3.1.31-dev/8';
|
const SMARTY_VERSION = '3.1.31-dev/9';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* define variable scopes
|
* define variable scopes
|
||||||
|
@@ -513,12 +513,12 @@ abstract class Smarty_Internal_TemplateCompilerBase
|
|||||||
// check nocache option flag
|
// check nocache option flag
|
||||||
foreach ($args as $arg) {
|
foreach ($args as $arg) {
|
||||||
if (!is_array($arg)) {
|
if (!is_array($arg)) {
|
||||||
if ($arg == "'nocache'") {
|
if ($arg === "'nocache'" || $arg === 'nocache') {
|
||||||
$this->tag_nocache = true;
|
$this->tag_nocache = true;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
foreach ($arg as $k => $v) {
|
foreach ($arg as $k => $v) {
|
||||||
if ($k == "'nocache'" && (trim($v, "'\" ") == 'true')) {
|
if (($k === "'nocache'" || $k === 'nocache') && (trim($v, "'\" ") == 'true')) {
|
||||||
$this->tag_nocache = true;
|
$this->tag_nocache = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user