mirror of
				https://github.com/Mibew/handlebars.php.git
				synced 2025-11-04 12:05:09 +03:00 
			
		
		
		
	Merge branch 'patch-4' of github.com:ulriklystbaek/handlebars.php
This commit is contained in:
		
						commit
						cc5bb9bf87
					
				@ -52,6 +52,8 @@ class UnlessHelper implements Helper
 | 
			
		||||
    {
 | 
			
		||||
        $tmp = $context->get($args);
 | 
			
		||||
 | 
			
		||||
        $context->push($context->last());
 | 
			
		||||
 | 
			
		||||
        if (!$tmp) {
 | 
			
		||||
            $template->setStopToken('else');
 | 
			
		||||
            $buffer = $template->render($context);
 | 
			
		||||
@ -63,6 +65,8 @@ class UnlessHelper implements Helper
 | 
			
		||||
            $buffer = $template->render($context);
 | 
			
		||||
        }
 | 
			
		||||
        
 | 
			
		||||
        $context->pop();
 | 
			
		||||
 | 
			
		||||
        return $buffer;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user