[TwigBridge] fixed fixed scope & trans_default_domain node visitor

This commit is contained in:
Jean-François Simon 2013-03-12 17:20:40 +01:00
parent c5e999aad4
commit fe4cc249b5
2 changed files with 1 additions and 4 deletions

View File

@ -34,6 +34,7 @@ class Scope
{
$this->parent = $parent;
$this->left = false;
$this->data = array();
}
/**

View File

@ -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'));