mirror of
				https://github.com/smarty-php/smarty.git
				synced 2025-10-31 12:21:36 +01:00 
			
		
		
		
	Cherry-picked from da76d927ed
				
					
				
			Co-Authored-By: Thomas BACCELLI <tbaccelli@gmail.com>
This commit is contained in:
		| @@ -157,7 +157,7 @@ class Smarty_Internal_Compile_Functionclose extends Smarty_Internal_CompileBase | ||||
|             $output = "<?php echo \"/*%%SmartyNocache:{$compiler->template->compiled->nocache_hash}%%*/<?php "; | ||||
|             $output .= "\\\$_smarty_tpl->smarty->ext->_tplFunction->restoreTemplateVariables(\\\$_smarty_tpl, '{$_name}');?>\n"; | ||||
|             $output .= "/*/%%SmartyNocache:{$compiler->template->compiled->nocache_hash}%%*/\";\n?>"; | ||||
|             $output .= "<?php echo str_replace('{$compiler->template->compiled->nocache_hash}', \$_smarty_tpl->compiled->nocache_hash, ob_get_clean());\n"; | ||||
|             $output .= "<?php echo str_replace('{$compiler->template->compiled->nocache_hash}', \$_smarty_tpl->compiled->nocache_hash ?? '', ob_get_clean());\n"; | ||||
|             $output .= "}\n}\n"; | ||||
|             $output .= "/*/ {$_funcName}_nocache */\n\n"; | ||||
|             $output .= "?>\n"; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user