Merge branch 'patch-4' of github.com:ulriklystbaek/handlebars.php

This commit is contained in:
fzerorubigd 2014-08-29 11:09:59 +04:30
commit cc5bb9bf87

View File

@ -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);
@ -62,6 +64,8 @@ class UnlessHelper implements Helper
$template->setStopToken(false);
$buffer = $template->render($context);
}
$context->pop();
return $buffer;
}