mirror of
				https://github.com/smarty-php/smarty.git
				synced 2025-11-03 22:01:36 +01:00 
			
		
		
		
	replace property array by object properties
This commit is contained in:
		@@ -115,11 +115,11 @@ function smarty_modifiercompiler_escape($params, $compiler)
 | 
			
		||||
 | 
			
		||||
    // could not optimize |escape call, so fallback to regular plugin
 | 
			
		||||
    if ($compiler->template->caching && ($compiler->tag_nocache | $compiler->nocache)) {
 | 
			
		||||
        $compiler->template->required_plugins['nocache']['escape']['modifier']['file'] = SMARTY_PLUGINS_DIR . 'modifier.escape.php';
 | 
			
		||||
        $compiler->template->required_plugins['nocache']['escape']['modifier']['function'] = 'smarty_modifier_escape';
 | 
			
		||||
        $compiler->parent_compiler->template->compiled->required_plugins['nocache']['escape']['modifier']['file'] = SMARTY_PLUGINS_DIR . 'modifier.escape.php';
 | 
			
		||||
        $compiler->parent_compiler->template->compiled->required_plugins['nocache']['escape']['modifier']['function'] = 'smarty_modifier_escape';
 | 
			
		||||
    } else {
 | 
			
		||||
        $compiler->template->required_plugins['compiled']['escape']['modifier']['file'] = SMARTY_PLUGINS_DIR . 'modifier.escape.php';
 | 
			
		||||
        $compiler->template->required_plugins['compiled']['escape']['modifier']['function'] = 'smarty_modifier_escape';
 | 
			
		||||
        $compiler->parent_compiler->template->compiled->required_plugins['compiled']['escape']['modifier']['file'] = SMARTY_PLUGINS_DIR . 'modifier.escape.php';
 | 
			
		||||
        $compiler->parent_compiler->template->compiled->required_plugins['compiled']['escape']['modifier']['function'] = 'smarty_modifier_escape';
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    return 'smarty_modifier_escape(' . join(', ', $params) . ')';
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user