Don't enforce strict search for variables in block exprs

This commit is contained in:
Marco Montagna 2015-06-03 14:33:22 -07:00
parent 8f9d0e5fef
commit 083458d839

View File

@ -402,7 +402,7 @@ class Template
// fallback to mustache style each/with/for just if there is
// no argument at all.
try {
$sectionVar = $context->get($sectionName, true);
$sectionVar = $context->get($sectionName, false);
} catch (\InvalidArgumentException $e) {
throw new \RuntimeException(
$sectionName . ' is not registered as a helper'