mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-07 20:04:27 +02:00
- bugfix - the output of plugins was not cached
- added global variable SCRIPT_NAME
This commit is contained in:
@@ -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
|
||||
|
@@ -242,6 +242,7 @@ class Smarty extends Smarty_Internal_TemplateBase {
|
||||
}
|
||||
}
|
||||
}
|
||||
$this->assign_global('SCRIPT_NAME', $_SERVER['SCRIPT_NAME']);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -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");
|
||||
|
Reference in New Issue
Block a user