X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Flib%2FDrupal%2FCore%2FTemplate%2FTwigNodeVisitor.php;h=5286242281a5c94b047163a4e1f96f163acd04bc;hb=refs%2Fheads%2Fd864;hp=1ebfa57de92aac065b397b158fdfcaacab0da9e6;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/web/core/lib/Drupal/Core/Template/TwigNodeVisitor.php b/web/core/lib/Drupal/Core/Template/TwigNodeVisitor.php index 1ebfa57de..528624228 100644 --- a/web/core/lib/Drupal/Core/Template/TwigNodeVisitor.php +++ b/web/core/lib/Drupal/Core/Template/TwigNodeVisitor.php @@ -33,7 +33,7 @@ class TwigNodeVisitor extends \Twig_BaseNodeVisitor { return $node; } $class = get_class($node); - $line = $node->getLine(); + $line = $node->getTemplateLine(); return new $class( new \Twig_Node_Expression_Function('render_var', new \Twig_Node([$node->getNode('expr')]), $line), $line @@ -43,10 +43,11 @@ class TwigNodeVisitor extends \Twig_BaseNodeVisitor { elseif ($node instanceof \Twig_Node_Expression_Filter) { $name = $node->getNode('filter')->getAttribute('value'); if ('escape' == $name || 'e' == $name) { - // Use our own escape filter that is SafeMarkup aware. + // Use our own escape filter that is MarkupInterface aware. $node->getNode('filter')->setAttribute('value', 'drupal_escape'); - // Store that we have a filter active already that knows how to deal with render arrays. + // Store that we have a filter active already that knows + // how to deal with render arrays. $this->skipRenderVarFunction = TRUE; } }