phpBB

Code Changes

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

  Unmodified   Added   Modified   Removed
Line 12Line 12
*/

namespace phpbb\template\twig\node;

*/

namespace phpbb\template\twig\node;



 

class event extends \Twig_Node
{


class event extends \Twig_Node
{

Line 47Line 46
		{
$ext_namespace = str_replace('/', '_', $ext_namespace);


		{
$ext_namespace = str_replace('/', '_', $ext_namespace);


			if (defined('DEBUG'))

			if ($this->environment->isDebug())

			{
// If debug mode is enabled, lets check for new/removed EVENT
// templates on page load rather than at compile. This is

			{
// If debug mode is enabled, lets check for new/removed EVENT
// templates on page load rather than at compile. This is

Line 59Line 58
				;
}


				;
}


			if (defined('DEBUG') || $this->environment->getLoader()->exists('@' . $ext_namespace . '/' . $location . '.html'))

			if ($this->environment->isDebug() || $this->environment->getLoader()->exists('@' . $ext_namespace . '/' . $location . '.html'))

			{
$compiler
->write("\$previous_look_up_order = \$this->env->getNamespaceLookUpOrder();\n")

			{
$compiler
->write("\$previous_look_up_order = \$this->env->getNamespaceLookUpOrder();\n")

Line 71Line 70
				;
}


				;
}


			if (defined('DEBUG'))

			if ($this->environment->isDebug())

			{
$compiler
->outdent()

			{
$compiler
->outdent()