mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 02:44:27 +02:00
- bugfix template functions defined with {function} in an included subtemplate could not be called in nocache
mode with {call... nocache} if the subtemplate had it's own cache file {forum 25452}
This commit is contained in:
@@ -1,6 +1,10 @@
|
|||||||
===== 3.1.22-dev ===== (xx.xx.2015)
|
===== 3.1.22-dev ===== (xx.xx.2015)
|
||||||
|
14.03.2015
|
||||||
|
- bugfix template functions defined with {function} in an included subtemplate could not be called in nocache
|
||||||
|
mode with {call... nocache} if the subtemplate had it's own cache file {forum 25452}
|
||||||
|
|
||||||
10.03.2015
|
10.03.2015
|
||||||
- bugfix {include ... nocache} with variable file or compile_id attribute was not executed in nocache mode.
|
- bugfix {include ... nocache} whith variable file or compile_id attribute was not executed in nocache mode.
|
||||||
|
|
||||||
12.02.2015
|
12.02.2015
|
||||||
- bugfix multiple Smarty::fetch() of same template when $smarty->merge_compiled_includes = true; could cause function already defined error
|
- bugfix multiple Smarty::fetch() of same template when $smarty->merge_compiled_includes = true; could cause function already defined error
|
||||||
|
@@ -111,7 +111,7 @@ class Smarty extends Smarty_Internal_TemplateBase
|
|||||||
/**
|
/**
|
||||||
* smarty version
|
* smarty version
|
||||||
*/
|
*/
|
||||||
const SMARTY_VERSION = '3.1.22-dev/9';
|
const SMARTY_VERSION = '3.1.22-dev/10';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* define variable scopes
|
* define variable scopes
|
||||||
|
@@ -246,13 +246,6 @@ class Smarty_Internal_Template extends Smarty_Internal_TemplateBase
|
|||||||
if ($this->parent instanceof Smarty_Internal_Template) {
|
if ($this->parent instanceof Smarty_Internal_Template) {
|
||||||
$this->parent->properties['file_dependency'] = array_merge($this->parent->properties['file_dependency'], $this->properties['file_dependency']);
|
$this->parent->properties['file_dependency'] = array_merge($this->parent->properties['file_dependency'], $this->properties['file_dependency']);
|
||||||
$this->parent->properties['tpl_function'] = array_merge($this->parent->properties['tpl_function'], $this->properties['tpl_function']);
|
$this->parent->properties['tpl_function'] = array_merge($this->parent->properties['tpl_function'], $this->properties['tpl_function']);
|
||||||
foreach ($this->required_plugins as $code => $tmp1) {
|
|
||||||
foreach ($tmp1 as $name => $tmp) {
|
|
||||||
foreach ($tmp as $type => $data) {
|
|
||||||
$this->parent->required_plugins[$code][$name][$type] = $data;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if ($this->smarty->debugging) {
|
if ($this->smarty->debugging) {
|
||||||
Smarty_Internal_Debug::end_render($this);
|
Smarty_Internal_Debug::end_render($this);
|
||||||
@@ -323,6 +316,16 @@ class Smarty_Internal_Template extends Smarty_Internal_TemplateBase
|
|||||||
Smarty_Internal_Debug::end_template($this);
|
Smarty_Internal_Debug::end_template($this);
|
||||||
}
|
}
|
||||||
// return fetched content
|
// return fetched content
|
||||||
|
if ($this->parent instanceof Smarty_Internal_Template) {
|
||||||
|
$this->parent->properties['tpl_function'] = array_merge($this->parent->properties['tpl_function'], $this->properties['tpl_function']);
|
||||||
|
foreach ($this->required_plugins as $code => $tmp1) {
|
||||||
|
foreach ($tmp1 as $name => $tmp) {
|
||||||
|
foreach ($tmp as $type => $data) {
|
||||||
|
$this->parent->required_plugins[$code][$name][$type] = $data;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
return $content;
|
return $content;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user