1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

[ticket/11700] include and define are not valid class names

PHPBB3-11700
This commit is contained in:
Nils Adermann
2013-07-14 15:38:04 -04:00
parent 4311cd65e3
commit 62b33968c2
5 changed files with 8 additions and 8 deletions

View File

@@ -16,7 +16,7 @@ if (!defined('IN_PHPBB'))
}
class phpbb_template_twig_tokenparser_define extends Twig_TokenParser
class phpbb_template_twig_tokenparser_defineparser extends Twig_TokenParser
{
/**
* Parses a token and returns a node.
@@ -46,7 +46,7 @@ class phpbb_template_twig_tokenparser_define extends Twig_TokenParser
$stream->expect(Twig_Token::BLOCK_END_TYPE);
}
return new phpbb_template_twig_node_define($capture, $name, $value, $lineno, $this->getTag());
return new phpbb_template_twig_node_definenode($capture, $name, $value, $lineno, $this->getTag());
}
public function decideBlockEnd(Twig_Token $token)

View File

@@ -16,7 +16,7 @@ if (!defined('IN_PHPBB'))
}
class phpbb_template_twig_tokenparser_include extends Twig_TokenParser_Include
class phpbb_template_twig_tokenparser_includeparser extends Twig_TokenParser_Include
{
/**
* Parses a token and returns a node.
@@ -31,7 +31,7 @@ class phpbb_template_twig_tokenparser_include extends Twig_TokenParser_Include
list($variables, $only, $ignoreMissing) = $this->parseArguments();
return new phpbb_template_twig_node_include($expr, $variables, $only, $ignoreMissing, $token->getLine(), $this->getTag());
return new phpbb_template_twig_node_includenode($expr, $variables, $only, $ignoreMissing, $token->getLine(), $this->getTag());
}
/**