mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 10:54:27 +02:00
- enhancement cacheable parameter added to default plugin handler, same functionality as in registerPlugin (request by calguy1000)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
===== trunk =====
|
||||
07.02.2012
|
||||
- bugfix increase entropy of internal function names in compiled and cached template files (Forum Topic 20996)
|
||||
- enhancement cacheable parameter added to default plugin handler, same functionality as in registerPlugin (request by calguy1000)
|
||||
|
||||
06.02.2012
|
||||
- improvement stream_resolve_include_path() added to Smarty_Internal_Get_Include_Path (Forum Topic 20980)
|
||||
|
@@ -509,11 +509,13 @@ abstract class Smarty_Internal_TemplateCompilerBase {
|
||||
{
|
||||
$callback = null;
|
||||
$script = null;
|
||||
$cacheable = true;
|
||||
$result = call_user_func_array(
|
||||
$this->smarty->default_plugin_handler_func,
|
||||
array($tag, $plugin_type, $this->template, &$callback, &$script)
|
||||
array($tag, $plugin_type, $this->template, &$callback, &$script, &$cacheable)
|
||||
);
|
||||
if ($result) {
|
||||
$this->tag_nocache = $this->tag_nocache || !$cacheable;
|
||||
if ($script !== null) {
|
||||
if (is_file($script)) {
|
||||
if ($this->template->caching && ($this->nocache || $this->tag_nocache)) {
|
||||
|
Reference in New Issue
Block a user