Code

Updated smarty to 1.0.9
[gosa.git] / gosa-core / include / smarty / sysplugins / smarty_internal_compile_nocache.php
index 3a4e113504eb6fad443df53c1014d6a4fd05bcb9..0c88b14bd57d7c9111cc7018773558ebe94351ce 100644 (file)
@@ -25,6 +25,9 @@ class Smarty_Internal_Compile_Nocache extends Smarty_Internal_CompileBase {
     {
         $this->compiler = $compiler; 
         $_attr = $this->_get_attributes($args);
+        if ($_attr['nocache'] === true) {
+               $this->compiler->trigger_template_error('nocache option not allowed', $this->compiler->lex->taglineno);
+        }
         // enter nocache mode
         $this->compiler->nocache = true;
         // this tag does not return compiled code