phpBB

Code Changes

File: phpbb/template/twig/node/definenode.php

  Unmodified   Added   Modified   Removed
Line 14Line 14

namespace phpbb\template\twig\node;



namespace phpbb\template\twig\node;


class definenode extends \Twig_Node

class definenode extends \Twig\Node\Node

{

{

	public function __construct($capture, \Twig_Node $name, \Twig_Node $value, $lineno, $tag = null)

	public function __construct($capture, \Twig\Node\Node $name, \Twig\Node\Node $value, $lineno, $tag = null)

	{
parent::__construct(array('name' => $name, 'value' => $value), array('capture' => $capture, 'safe' => false), $lineno, $tag);
}

	{
parent::__construct(array('name' => $name, 'value' => $value), array('capture' => $capture, 'safe' => false), $lineno, $tag);
}

Line 24Line 24
	/**
* Compiles the node to PHP.
*

	/**
* Compiles the node to PHP.
*

	* @param \Twig_Compiler A Twig_Compiler instance

	* @param \Twig\Compiler A Twig\Compiler instance

	*/

	*/

	public function compile(\Twig_Compiler $compiler)

	public function compile(\Twig\Compiler $compiler)

	{
$compiler->addDebugInfo($this);


	{
$compiler->addDebugInfo($this);


Line 37Line 37
				->subcompile($this->getNode('value'))
;


				->subcompile($this->getNode('value'))
;


			$compiler->write("\$value = ('' === \$value = ob_get_clean()) ? '' : new \Twig_Markup(\$value, \$this->env->getCharset());\n");

			$compiler->write("\$value = ('' === \$value = ob_get_clean()) ? '' : new \Twig\Markup(\$value, \$this->env->getCharset());\n");

		}
else
{

		}
else
{