Project

General

Profile

« Previous | Next » 

Revision 1852

Added by darkviper over 11 years ago

updated Twig template engine to stable version 1.11.1 step2

View differences:

GetAttr.php
13 13
{
14 14
    public function __construct(Twig_Node_Expression $node, Twig_Node_Expression $attribute, Twig_Node_Expression_Array $arguments, $type, $lineno)
15 15
    {
16
        parent::__construct(array('node' => $node, 'attribute' => $attribute, 'arguments' => $arguments), array('type' => $type, 'is_defined_test' => false, 'ignore_strict_check' => false), $lineno);
16
        parent::__construct(array('node' => $node, 'attribute' => $attribute, 'arguments' => $arguments), array('type' => $type, 'is_defined_test' => false, 'ignore_strict_check' => false, 'disable_c_ext' => false), $lineno);
17 17
    }
18 18

  
19 19
    public function compile(Twig_Compiler $compiler)
20 20
    {
21
        if (function_exists('twig_template_get_attributes')) {
21
        if (function_exists('twig_template_get_attributes') && !$this->getAttribute('disable_c_ext')) {
22 22
            $compiler->raw('twig_template_get_attributes($this, ');
23 23
        } else {
24 24
            $compiler->raw('$this->getAttribute(');

Also available in: Unified diff