diff --git a/change_log.txt b/change_log.txt
index 649cd8ad..66238a64 100644
--- a/change_log.txt
+++ b/change_log.txt
@@ -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
diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php
index fffcf130..29955b34 100644
--- a/libs/Smarty.class.php
+++ b/libs/Smarty.class.php
@@ -124,7 +124,7 @@ class Smarty extends Smarty_Internal_TemplateBase {
// config var settings
public $config_overwrite = true; //Controls whether variables with the same name overwrite each other.
public $config_booleanize = true; //Controls whether config values of on/true/yes and off/false/no get converted to boolean
- public $config_read_hidden = true; //Controls whether hidden config sections/vars are read from the file.
+ public $config_read_hidden = true; //Controls whether hidden config sections/vars are read from the file.
// config vars
public $config_vars = array();
// assigned tpl vars
@@ -242,6 +242,7 @@ class Smarty extends Smarty_Internal_TemplateBase {
}
}
}
+ $this->assign_global('SCRIPT_NAME', $_SERVER['SCRIPT_NAME']);
}
/**
@@ -262,7 +263,7 @@ class Smarty extends Smarty_Internal_TemplateBase {
*/
public static function &instance($name = 'default')
{
- if (isset(Smarty::$instance[$name])) {
+ if (isset(Smarty::$instance[$name])) {
return Smarty::$instance[$name];
} else {
throw new Exception("Smarty instance $name is not existing");
@@ -516,7 +517,7 @@ class SmartyException {
echo "Code: " . $e->getCode() . "
Error: " . htmlentities($e->getMessage()) . "
"
. "File: " . $e->getFile() . "
"
. "Line: " . $e->getLine() . "
"
-// . "Trace" . $e->getTraceAsString() . "
"
+ // . "Trace" . $e->getTraceAsString() . "
"
. "\n";
}
diff --git a/libs/sysplugins/internal.plugin_handler.php b/libs/sysplugins/internal.plugin_handler.php
index 075bfbe3..4698f511 100644
--- a/libs/sysplugins/internal.plugin_handler.php
+++ b/libs/sysplugins/internal.plugin_handler.php
@@ -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");