- bugfix - the output of plugins was not cached

- added global variable SCRIPT_NAME
This commit is contained in:
Uwe.Tews
2009-08-24 19:26:31 +00:00
parent b688c24976
commit e759f76661
3 changed files with 7 additions and 4 deletions

View File

@@ -1,5 +1,7 @@
08/24/2009
- fixed typo in lexer definition for '!==' operator
- bugfix - the ouput of plugins was not cached
- added global variable SCRIPT_NAME
08/21/2009
- fixed problems whitespace in conjuction with custom delimiters

View File

@@ -242,6 +242,7 @@ class Smarty extends Smarty_Internal_TemplateBase {
}
}
}
$this->assign_global('SCRIPT_NAME', $_SERVER['SCRIPT_NAME']);
}
/**

View File

@@ -52,7 +52,7 @@ class Smarty_Internal_Plugin_Handler {
$plugin = array(new $plugin, 'execute');
}
if (is_callable($plugin)) {
$this->smarty->registered_plugins[$name] = array($plugin_type, $plugin, false);
$this->smarty->registered_plugins[$name] = array($plugin_type, $plugin, true);
return true;
} else {
throw new Exception("Plugin \"{$name}\" not callable");