From eab8a101e7a3fcbb41e01a574985e06c5a3775de Mon Sep 17 00:00:00 2001 From: emkael Date: Thu, 18 Oct 2018 02:40:38 +0200 Subject: Updating Smarty --- .../sysplugins/smarty_internal_compile_make_nocache.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'lib/smarty3/sysplugins/smarty_internal_compile_make_nocache.php') diff --git a/lib/smarty3/sysplugins/smarty_internal_compile_make_nocache.php b/lib/smarty3/sysplugins/smarty_internal_compile_make_nocache.php index 720dd68..8a34ccd 100644 --- a/lib/smarty3/sysplugins/smarty_internal_compile_make_nocache.php +++ b/lib/smarty3/sysplugins/smarty_internal_compile_make_nocache.php @@ -41,20 +41,18 @@ class Smarty_Internal_Compile_Make_Nocache extends Smarty_Internal_CompileBase /** * Compiles code for the {make_nocache} tag * - * @param array $args array with attributes from parser - * @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object - * @param array $parameter array with compilation parameter + * @param array $args array with attributes from parser + * @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object * * @return string compiled code - * @throws \SmartyCompilerException */ - public function compile($args, Smarty_Internal_TemplateCompilerBase $compiler, $parameter) + public function compile($args, Smarty_Internal_TemplateCompilerBase $compiler) { // check and get attributes $_attr = $this->getAttributes($compiler, $args); if ($compiler->template->caching) { $output = "smarty->ext->_make_nocache->save(\$_smarty_tpl, {$_attr[ 'var' ]});\n?>\n"; - $compiler->has_code = true; + $compiler->template->compiled->has_nocache_code = true; $compiler->suppressNocacheProcessing = true; return $output; } else { -- cgit v1.2.3