[TwigBridge] fixed fixed scope & trans_default_domain node visitor
This commit is contained in:
parent
c5e999aad4
commit
fe4cc249b5
@ -34,6 +34,7 @@ class Scope
|
||||
{
|
||||
$this->parent = $parent;
|
||||
$this->left = false;
|
||||
$this->data = array();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -43,10 +43,6 @@ class TranslationDefaultDomainNodeVisitor implements \Twig_NodeVisitorInterface
|
||||
$this->scope = $this->scope->enter();
|
||||
}
|
||||
|
||||
if ($node instanceof \Twig_Node_Module) {
|
||||
$this->scope->set('domain', null);
|
||||
}
|
||||
|
||||
if ($node instanceof TransDefaultDomainNode) {
|
||||
if ($node->getNode('expr') instanceof \Twig_Node_Expression_Constant) {
|
||||
$this->scope->set('domain', $node->getNode('expr'));
|
||||
|
Reference in New Issue
Block a user