summaryrefslogtreecommitdiff
path: root/lib/smarty3/sysplugins/smarty_internal_compile_rdelim.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/smarty3/sysplugins/smarty_internal_compile_rdelim.php')
-rw-r--r--lib/smarty3/sysplugins/smarty_internal_compile_rdelim.php12
1 files changed, 3 insertions, 9 deletions
diff --git a/lib/smarty3/sysplugins/smarty_internal_compile_rdelim.php b/lib/smarty3/sysplugins/smarty_internal_compile_rdelim.php
index 2e6b43c..1cc340c 100644
--- a/lib/smarty3/sysplugins/smarty_internal_compile_rdelim.php
+++ b/lib/smarty3/sysplugins/smarty_internal_compile_rdelim.php
@@ -14,13 +14,13 @@
* @package Smarty
* @subpackage Compiler
*/
-class Smarty_Internal_Compile_Rdelim extends Smarty_Internal_CompileBase
+class Smarty_Internal_Compile_Rdelim extends Smarty_Internal_Compile_Ldelim
{
/**
* Compiles code for the {rdelim} tag
* This tag does output the right delimiter.
*
- * @param array $args array with attributes from parser
+ * @param array $args array with attributes from parser
* @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object
*
* @return string compiled code
@@ -28,13 +28,7 @@ class Smarty_Internal_Compile_Rdelim extends Smarty_Internal_CompileBase
*/
public function compile($args, Smarty_Internal_TemplateCompilerBase $compiler)
{
- $_attr = $this->getAttributes($compiler, $args);
- if ($_attr[ 'nocache' ] === true) {
- $compiler->trigger_template_error('nocache option not allowed', null, true);
- }
- // this tag does not return compiled code
- $compiler->has_code = true;
-
+ parent::compile($args, $compiler);
return $compiler->smarty->right_delimiter;
}
}