phpBB

Code Changes

File: phpbb/template/twig/tokenparser/defineparser.php

  Unmodified   Added   Modified   Removed
Line 13Line 13
*/

namespace phpbb\template\twig\tokenparser;

*/

namespace phpbb\template\twig\tokenparser;



 

class defineparser extends \Twig_TokenParser
{


class defineparser extends \Twig_TokenParser
{

Line 33Line 32
		$name = $this->parser->getExpressionParser()->parseExpression();

$capture = false;

		$name = $this->parser->getExpressionParser()->parseExpression();

$capture = false;

		if ($stream->test(\Twig_Token::OPERATOR_TYPE, '=')) {


		if ($stream->test(\Twig_Token::OPERATOR_TYPE, '='))
{

			$stream->next();
$value = $this->parser->getExpressionParser()->parseExpression();


			$stream->next();
$value = $this->parser->getExpressionParser()->parseExpression();


Line 45Line 45
			}

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

			}

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

		} else {



		}
else
{

			$capture = true;

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

			$capture = true;

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