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:

Set.php
49 49
            $stream->expect(Twig_Token::BLOCK_END_TYPE);
50 50

  
51 51
            if (count($names) !== count($values)) {
52
                throw new Twig_Error_Syntax("When using set, you must have the same number of variables and assignements.", $lineno);
52
                throw new Twig_Error_Syntax("When using set, you must have the same number of variables and assignements.", $stream->getCurrent()->getLine(), $stream->getFilename());
53 53
            }
54 54
        } else {
55 55
            $capture = true;
56 56

  
57 57
            if (count($names) > 1) {
58
                throw new Twig_Error_Syntax("When using set with a block, you cannot have a multi-target.", $lineno);
58
                throw new Twig_Error_Syntax("When using set with a block, you cannot have a multi-target.", $stream->getCurrent()->getLine(), $stream->getFilename());
59 59
            }
60 60

  
61 61
            $stream->expect(Twig_Token::BLOCK_END_TYPE);

Also available in: Unified diff