aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_continue.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_continue.php')
-rw-r--r--vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_continue.php27
1 files changed, 5 insertions, 22 deletions
diff --git a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_continue.php b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_continue.php
index 7492c7df2..19e5d4bee 100644
--- a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_continue.php
+++ b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_continue.php
@@ -16,27 +16,10 @@
*/
class Smarty_Internal_Compile_Continue extends Smarty_Internal_Compile_Break
{
-
/**
- * Compiles code for the {continue} tag
- *
- * @param array $args array with attributes from parser
- * @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object
- * @param array $parameter array with compilation parameter
- *
- * @return string compiled code
- * @throws \SmartyCompilerException
- */
- public function compile($args, Smarty_Internal_TemplateCompilerBase $compiler, $parameter)
- {
- list($levels, $foreachLevels) = $this->checkLevels($args, $compiler, 'continue');
- $output = "<?php\n";
- if ($foreachLevels > 1) {
- /* @var Smarty_Internal_Compile_Foreach $foreachCompiler */
- $foreachCompiler = $compiler->getTagCompiler('foreach');
- $output .= $foreachCompiler->compileRestore($foreachLevels - 1);
- }
- $output .= "continue {$levels};?>";
- return $output;
- }
+ * Tag name
+ *
+ * @var string
+ */
+ public $tag = 'continue';
}